[SDL] Difference between a 1-bit image and an indexed image when loaded into surface

Torsten Giebl wizard at syntheticsw.com
Thu Feb 15 20:21:32 PST 2007


Hello !


>   - 1-bit monochrome image
>   - 1-bit monochrome image with alpha


I am not sure, but i don't think
SDL supports Monochrome Surfaces.

As SDL was created in times when you had
at least 8 Bit Color Support with VGA.

Personally i would write a converter to
convert from normal PNG (Alpha) Images to
your own Monochrome Format or just do it runtime.

When you loaded a normal PNG (Alpha) and converted it,
you can just free the PNG (Alpha) Image and instead use
your own Mono. Format. As Mono.


CU



More information about the SDL mailing list