[SDL] PNG Transparency (other image formats too)

Torsten Giebl wizard at syntheticsw.com
Thu Sep 28 11:11:44 PDT 2006


Hello !


> When I call SDL_DisplayFormat() on a surface to convert it and
> speed up blitting, I lose all alpha channel information as loaded
> from the file.
>
> How do I preserve alpha channel information? Or is this not
> possible?


There is a SDL_DisplayFormatAlpha(), just test this.


CU




More information about the SDL mailing list