Re: [AD] Problem loading 24bit PNG graphics when setting color depth to 8.

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2006-06-12, Kirk Black <runesabre@xxxxxxxxxx> wrote:
> I have an application that loaded 24bit BMP images and had Allegro color
> convert to 8, 16 or 32 bit as needed at load time using
> set_color_conversion(COLORCONV_TOTAL|COLORCONV_KEEP_TRANS).  
> 
>  
> 
> When I recently converted to using PNG images (and saving all the original
> BMP images to PNG) and using the handy LoadPNG library, only 16 and 32 bit
> color conversions work.  The 8bit color mode gets a messed up palette.
> 
>  
> 
> Is this a known issue with loadpng or using PNG graphics?
> 

Please send a test case, i.e. single .c file and a small .png.
Probably the rest of the list wouldn't appreciate it, so send it to my
email address.

Thanks.
Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/