PocketMatrix forums

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

PNG + Alpha channel

Has anybody got a loader that supports PNG's alpha channel and a blit function for PF 0_8 ?
I saw previous posts of efortier http://www.pocketmatrix.com/forums/viewtopic.php?t=14828 and fast_rx http://www.pocketmatrix.com/forums/viewtopic.php?t=13651, but nobody posted a complite library, I thought Thierry would support it in a new version of PFhttp://www.pocketmatrix.com/forums/viewtopic.php?t=14951 :? but I was wrong :(
I don't know if or when my stuff would get incorporated... But I can tell you that there were no support for loading images with alpha. The way I was doing it was to just export the alpha as a separate bitmap.
And what about efortier's export of LibPNG, I thought it was loading of a surface + Blitting it, useing alpha channel?
Any more news on this? im interested
If you have tried an example of efortier you can also say: "It works perfect ", you can download an example at: http://www.pocketmatrix.com/forums/viewtopic.php?t=14828
But then I sent a letter to efortier - would he publish his image loading library and he hadn't replied (I've sent it about a week ago).
Pejo Software - Per · 02 Oct 2004, 22:16 UTC
I have an idea:
Download libpng and use it. It isn't difficult.
Pejo Software - Per wrote:I have an idea:
Download libpng and use it. It isn't difficult.



yeah i was just going to say that, i only need png support so i dont know what im worrying about. Guess its my ultra lazy side coming out again.....
Ok ive been playing around with this a bit more now, and it shouldn’t be too hard to make a new surface type with an alpha channel support and write a basic alpha blit using lookup tables, but I don’t want to do this if its been already completed

Anybody got any more news on this?
Ok as ive waited 15 seconds and nobody has replied ill have a go at it, :D

I think im going to remove pocket frog from my project and make a straight png loader and alpha blit on top of pockethal,

Ill let you know how it goes, first attempt at such things, it’l probably be slow as hell, but it could not be, and its nice to get a better understanding of whats going on (I suspect some pocketfrog code could end up in it)

edit: this has been cancelled as im moving to gapidraw, don’t like reinventing that wheel :D