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

PNG-32 support - a painful question :-(


PNG-32 support - a painful question :-(

Postby BIGBEN » Apr 6, 2005 @ 2:13pm

User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby muff » Apr 12, 2005 @ 11:13am

as a work around for now, you could always save the PNG out as 2 separate files - one for picture colour information, and one for the alpha mask information
muff
 


Postby BIGBEN » Apr 12, 2005 @ 11:23am

Thank you, but it is 33% larger on run time. 32PNG(24color converted to 16 + alpha 8 bits) = 24 bits vs. 16 + 16 bits = 32 bits.
24 vs. 32!
But thank you anyway.
Could you please post your code for 2 surfaces AlphaBlit? :wink:
User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby muff » Apr 12, 2005 @ 12:36pm

well actually I wrote my own gfx engine instead of using PocketFrog or GapiDraw in the end - which amongst many other features allows a 16bit image to use ANY 8bit mask as an alpha mask - so still 24 bit :D

so sorry, no code to share - but the principle still applies :D
muff
 


Postby BIGBEN » Apr 12, 2005 @ 1:53pm

User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby fast_rx » Apr 12, 2005 @ 1:53pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby BIGBEN » Apr 12, 2005 @ 2:15pm

User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


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