This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Adding PNG support for PocketFrog + PHAL


Adding PNG support for PocketFrog + PHAL

Postby denthorq » Dec 19, 2005 @ 6:17pm

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!
Last edited by denthorq on Dec 19, 2005 @ 7:58pm, edited 1 time in total.
It's worth the wait...
User avatar
denthorq
pm Insider
 
Posts: 447
Joined: Apr 18, 2003 @ 9:15pm
Location: USA-PHILIPPINES


Postby Presto » Dec 19, 2005 @ 7:41pm

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.
User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby Guest » Dec 19, 2005 @ 7:56pm

I think I remember reading about it in other threads.

Thanks John.
Guest
 


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron