LoadPNG

BlitzPlus Forums/BlitzPlus Programming/LoadPNG

(tu) ENAY(Posted 2008) [#1]
Hi,

Does anyone know of a LoadPNG library that I can use with Blitz+/Blitzbasic?

This was actually a problem I had before in that I have images saved in a png file that have pure white and pure black in them, but when I try to load them in 2D mode the alpha goes to pure white and blends in with the white colours.

What would be handy is a pngloader that recognises the alpha channel and somehow knows it is pink 255,0,255

I have searched the forums and code archives and some people talk of some loaders but I have yet to find any.


boomboom(Posted 2008) [#2]
I assume you can't just load it in with the alpha flag on?


(tu) ENAY(Posted 2008) [#3]
Is it really that simple?


Ked(Posted 2008) [#4]
I don't think there is an alpha flag.


andy_mc(Posted 2008) [#5]
why not just use the maskimage command?
maskimage imagename,255,0,255 should work shouldn't it? Or am I missing something?