LoadPNG

BlitzPlus Forums/BlitzPlus Programming/LoadPNG

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.

I assume you can't just load it in with the alpha flag on?

Is it really that simple?

I don't think there is an alpha flag.

why not just use the maskimage command?
maskimage imagename,255,0,255 should work shouldn't it? Or am I missing something?