Page 1 of 1

Adding PNG support for PocketFrog + PHAL

PostPosted: Dec 19, 2005 @ 6:17pm
by denthorq
Hi PF users,

I just want to know if there are any work going on to support/load PNG format?

I have a good idea using LibPNG and Zlib. But I don't want to add it if someone is working on or there's an existing support already.

My idea is: Load PNG, Convert PNG to DIB/BMP, and update/draw the screen using same PF blit function.


Edited:

So the issue is on PC build then. BTW, the Guest was me!

PostPosted: Dec 19, 2005 @ 7:41pm
by Presto
PF has no problems with loading PNGs as it is, except on the desktop, or if you intend to keep the alpha layer. If you want to keep the alpha layer, you'll need to use a different library, like libPNG, and re-work the surface/blit code to use it. Practically all of the images in my games are PNGs, with separate files holding the alpha layers, but I keep BMP versions as well for testing on the desktop.

PostPosted: Dec 19, 2005 @ 7:56pm
by Guest
I think I remember reading about it in other threads.

Thanks John.