PocketMatrix forums

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

PNG-32 support - a painful question :-(

Thierry, would we see a PNG 32-bit support with alpha channel in PocketFrog in near future?
For me it is a very very important question, my game !PYROMANIA! is near to the end of development and this feature is like an oxygen for me :cry:!
Fire and blows are now 'flat' without this feature in my game.
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
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:
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
Congrats, you are an experienced programmer to write your own blitter.
I can only use what "heaven rained" :?
muff wrote: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

Nice advertising :wink:
Are you going to sell it (donateware it or just share it)? :D
The code for 2 surface alpha blits is here somewhere...

http://mobile.pocketmatrix.com/forums/v ... ight=alpha

Presto also posted some code...
Thank you fast_rx, I saw all this alpha blending posts. Just waiting for something integrated in PocketFrog/Hal :wink:

P.S. If you intrested in history of alpha channel this could be interesting for you:
ftp://ftp.alvyray.com/Acrobat/7_Alpha.pdf :wink: