[SDL] SDL_image save image to file

Alexander Sabourenkov llxxnntt at gmail.com
Wed Jan 27 11:33:47 PST 2016

You can try the untested indexed PNG save/load here:

It should save colorkeyed paletted SDL_Surface as a paletted PNG with only
that color set to transparent (all others opaque).
It should load such file to a paletted surface, and set the colorkey the
right way.

Not tested in any way. Will appeciate test-cases, images, SDL_Surface
dumps, etc. This lib is in dire need of tests.

Once it's tested and known to work I'm sure porting the support to
SDL_image won't be a problem.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20160127/e23ac9af/attachment.htm>

More information about the SDL mailing list