PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Adding PNG support for PocketFrog + PHAL

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!
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.
I think I remember reading about it in other threads.

Thanks John.