nanogui: PNG support


Previous by date: 19 Sep 2002 19:57:46 -0000 Re: PNG Support, Greg Haerr
Next by date: 19 Sep 2002 19:57:46 -0000 12-bit direct color model, Henrik Andoff
Previous in thread: 19 Sep 2002 19:57:46 -0000 Re: PNG Support, Greg Haerr
Next in thread: 19 Sep 2002 19:57:46 -0000 Re: PNG Support, Fabrice Gautier

Subject: Re: [nanogui] PNG Support
From: Jordan Crouse ####@####.####
Date: 19 Sep 2002 19:57:46 -0000
Message-Id: <20020919134901.7262e923.jordanc@censoft.com>

We use the png_set_expand() function to force the PNG library to decode to 24 bits, which is the correct thing to do in this case.

Because we decode to 24 bits, then we set the image up as a 24 bit image (with the pitch set accordingly).  I would assume that GrDrawImage() uses some of the values from the image struture without properly adjusting them for the real depth of the window first.

Jordan


On Thu, 19 Sep 2002 13:44:55 -0600
"Greg Haerr" ####@####.#### wrote:

> : My PNGs are indeed 8bit and carry their own palette, i think libpng output 8
> : bit data, but nano-X thinks it's 24 bits RGB.
> 
> Fabrice - please send me a small example png, I'll look into this.
> 
> Regards,
> 
> Greg
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 
> 

Previous by date: 19 Sep 2002 19:57:46 -0000 Re: PNG Support, Greg Haerr
Next by date: 19 Sep 2002 19:57:46 -0000 12-bit direct color model, Henrik Andoff
Previous in thread: 19 Sep 2002 19:57:46 -0000 Re: PNG Support, Greg Haerr
Next in thread: 19 Sep 2002 19:57:46 -0000 Re: PNG Support, Fabrice Gautier


Powered by ezmlm-browse 0.20.