Re: [AD] 8-bit palette support for A5

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


On 28 May 2011, at 17:18 , Elias Pschernig wrote:
> - Formats other than .bmp and .pcx. Could be a lot of work, e.g. to
> support .png need three versions, one using libpng, one GDIPlus, one the
> native OSX loader. And not sure how easy it is to get index/palette
> information out of any of those.

I think it's fine to say that we only support 8 bit images for PCX and BMP, at least for now. Ideally we'd be able to do PNG as well, of course.

> - Support for loading the palette information. With the KEEP_INDEX flag
> it would make a lot of sense to also load the palette contained in the
> bitmap. Very easy to add implementation-wise, just need an API how to
> get the palette. Probably something like al_load_bitmap_ex_f() with an
> out parameter for the palette.

I'd prefer al_load_bitmap_and_palette() or something similar. Or al_load_indexed_bitmap().

Evert





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