Maintaining alpha in an image

Blitz3D Forums/Blitz3D Beginners Area/Maintaining alpha in an image

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hiya Dave,

Long time no see.
Yeah resaving the images with alpha as 0,0,0 or 255,0,255 would be the ideal fix. But that's not an option, I have like loads of images and they need to stay in the same format so they can be loaded elsewhere and have all their alpha stuff intact, otherwise then it's broken elsewhere. Also if I remask mask all the images I've suddenly doubled the amount of images I have.

What I'm hoping to do is have some sort of function which loads the alpha'd image and then converts it to a masked pixel. If there is just a way of somehow loading the image in Blitz2D, doing some wibbling, even if it's read and write pixel plotting and then

eg

Function WibbleLoadImage(filename$)
local plop = LoadImage(filename$)

; Pixel Wibble bit here

Return plop
End Function


..that would me mega. I don't think it can be done though.