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

mal content artifact.one at googlemail.com
Thu Feb 15 20:22:55 PST 2007


On 16/02/07, Torsten Giebl <wizard at syntheticsw.com> wrote:
> 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.
>

Ok, thanks!

I'll get to work on a quick PNG loader.

MC


More information about the SDL mailing list