bmp/png libs?

2009-05-13 Thread Nick Sabalausky
Can anyone suggest good up-to-date D libs or bindings for loading/saving bmp and png files?

Re: bmp/png libs?

2009-05-14 Thread Stewart Gordon
Nick Sabalausky wrote: Can anyone suggest good up-to-date D libs or bindings for loading/saving bmp and png files? BMP - who in their right mind still uses this? PNG - Lodepng is one http://www.dsource.org/projects/scrapple/wiki/LodePngLibrary but it depends on what you want to be able to do

Re: bmp/png libs?

2009-05-14 Thread Robert Fraser
Stewart Gordon wrote: BMP - who in their right mind still uses this? Yeah, zero-overhead; who needs that?

Re: bmp/png libs?

2009-05-14 Thread BCS
Reply to Robert, Stewart Gordon wrote: BMP - who in their right mind still uses this? Yeah, zero-overhead; who needs that? if you want zero overhead use PPM in binary mode: 32bit color and about ~16 bytes of non image data that can be output by printf.

Re: bmp/png libs?

2009-05-14 Thread Robert Fraser
BCS wrote: Reply to Robert, Stewart Gordon wrote: BMP - who in their right mind still uses this? Yeah, zero-overhead; who needs that? if you want zero overhead use PPM in binary mode: 32bit color and about ~16 bytes of non image data that can be output by printf. Yeah, but who's heard

Re: bmp/png libs?

2009-05-14 Thread Daniel Keep
Robert Fraser wrote: > Stewart Gordon wrote: >> BMP - who in their right mind still uses this? > > Yeah, zero-overhead; who needs that? I've never seen BMP loading or saving code that didn't have to resort to the Windows API. Even then, the code was horrible. TGA is a good format for when you

Re: bmp/png libs?

2009-05-14 Thread Adam D. Ruppe
On Wed, May 13, 2009 at 11:35:03PM -0400, Nick Sabalausky wrote: > Can anyone suggest good up-to-date D libs or bindings for loading/saving bmp > and png files? > I wrote a very minimal BMP class in D2 a while back. I didn't finish it so IIRC it only supports 24 and maybe 8 bit bitmaps, but it

Re: bmp/png libs?

2009-05-14 Thread Rainer Deyke
Stewart Gordon wrote: > Nick Sabalausky wrote: >> Can anyone suggest good up-to-date D libs or bindings for >> loading/saving bmp and png files? > > BMP - who in their right mind still uses this? BMP is the most popular uncompressed image format. Uncompressed file format + lzma compression lead

Re: bmp/png libs?

2009-05-14 Thread Nick Sabalausky
"Rainer Deyke" wrote in message news:guij2k$6s...@digitalmars.com... > Stewart Gordon wrote: >> Nick Sabalausky wrote: >>> Can anyone suggest good up-to-date D libs or bindings for >>> loading/saving bmp and png files? >> >> BMP - who in their right mind still uses this? > > BMP is the most popul

Re: bmp/png libs?

2009-05-14 Thread Nick Sabalausky
"Adam D. Ruppe" wrote in message news:mailman.70.1242352289.13405.digitalmar...@puremagic.com... > On Wed, May 13, 2009 at 11:35:03PM -0400, Nick Sabalausky wrote: >> Can anyone suggest good up-to-date D libs or bindings for loading/saving >> bmp >> and png files? >> > > I wrote a very minimal B

Re: bmp/png libs?

2009-05-14 Thread Rainer Deyke
Nick Sabalausky wrote: > Yea, this is pretty much the key. Even if nothing else, it's at least > useful *because* it's popular. In other words, the same reason why any audio > app realisticlly needs to support MP3 even though MP3 is probably the single > worst lossy audio codec out there (an as

Re: bmp/png libs?

2009-05-14 Thread div0
Nick Sabalausky wrote: > Can anyone suggest good up-to-date D libs or bindings for loading/saving bmp > and png files? > > http://www.ssTk.co.uk/png.php Import is for d2, but changing it for d1 would be trivial. -- My enormous talent is exceeded only by my outrageous laziness.

Re: bmp/png libs?

2009-05-14 Thread Nick Sabalausky
"Rainer Deyke" wrote in message news:guimbr$de...@digitalmars.com... > Nick Sabalausky wrote: >> Yea, this is pretty much the key. Even if nothing else, it's at least >> useful *because* it's popular. In other words, the same reason why any >> audio >> app realisticlly needs to support MP3 even

Re: bmp/png libs?

2009-05-14 Thread Nick Sabalausky
"div0" wrote in message news:guirpq$m7...@digitalmars.com... > Nick Sabalausky wrote: >> Can anyone suggest good up-to-date D libs or bindings for loading/saving >> bmp >> and png files? >> > > http://www.ssTk.co.uk/png.php > > Import is for d2, but changing it for d1 would be trivial. > Ah, co

Re: bmp/png libs?

2009-05-14 Thread Andrei Alexandrescu
Nick Sabalausky wrote: "div0" wrote in message news:guirpq$m7...@digitalmars.com... Nick Sabalausky wrote: Can anyone suggest good up-to-date D libs or bindings for loading/saving bmp and png files? http://www.ssTk.co.uk/png.php Import is for d2, but changing it for d1 would be trivial.

Re: bmp/png libs?

2009-05-14 Thread Daniel Keep
Andrei Alexandrescu wrote: > Nick Sabalausky wrote: >> "div0" wrote in message >> news:guirpq$m7...@digitalmars.com... >>> Nick Sabalausky wrote: Can anyone suggest good up-to-date D libs or bindings for loading/saving bmp and png files? >>> http://www.ssTk.co.uk/png.php >>>

Re: bmp/png libs?

2009-05-14 Thread div0
Nick Sabalausky wrote: > "div0" wrote in message > news:guirpq$m7...@digitalmars.com... >> Nick Sabalausky wrote: >>> Can anyone suggest good up-to-date D libs or bindings for loading/saving >>> bmp >>> and png files? >>> >> http://www.ssTk.co.uk/png.php >> >> Import is for d2, but changing it f

Re: bmp/png libs?

2009-05-14 Thread Rainer Deyke
Nick Sabalausky wrote: > au was lossy? Yes, to the extend that it was compressed at all. Each 16 bit sample was independently reduced to 8 bits using a logarithmic scale. -- Rainer Deyke - rain...@eldwood.com

Re: bmp/png libs?

2009-05-14 Thread div0
Nick Sabalausky wrote: > "div0" wrote in message > news:guirpq$m7...@digitalmars.com... >> Nick Sabalausky wrote: >>> Can anyone suggest good up-to-date D libs or bindings for loading/saving >>> bmp >>> and png files? >>> >> http://www.ssTk.co.uk/png.php >> >> Import is for d2, but changing it f

Re: bmp/png libs?

2009-05-16 Thread digited
Nick Sabalausky Wrote: > Can anyone suggest good up-to-date D libs or bindings for loading/saving bmp > and png files? > > If you'll need more (formats for i/o or some processing), you can use DerelictIL/ILU bindings + DevIL free lib. This lib seems to be the best bicycle of that sort, you

Re: bmp/png libs?

2009-05-16 Thread Georg Wrede
Daniel Keep wrote: Andrei Alexandrescu wrote: Nick Sabalausky wrote: "div0" wrote in message news:guirpq$m7...@digitalmars.com... Nick Sabalausky wrote: Can anyone suggest good up-to-date D libs or bindings for loading/saving bmp and png files? http://www.ssTk.co.uk/png.php Import is for

Re: bmp/png libs?

2009-05-16 Thread div0
Georg Wrede wrote: > Daniel Keep wrote: >> >> Andrei Alexandrescu wrote: >>> Nick Sabalausky wrote: "div0" wrote in message news:guirpq$m7...@digitalmars.com... > Nick Sabalausky wrote: >> Can anyone suggest good up-to-date D libs or bindings for >> loading/saving bmp >>

Re: bmp/png libs?

2009-05-16 Thread Adam D. Ruppe
Well, I've been doing some more work on it today. The biggest new function is BMP.display(), which pops up a window displaying the bmp on the screen. I also cleaned up the code a little, put in a preliminary load from file function, and added some ddocs. Download here: http://arsdnet.net/bmpstuf