Image Mask?

BlitzMax Forums/BlitzMax Beginners Area/Image Mask?

I use Paint Shop Pro 9. When drawing your images make sure that when you create the image that the background colour is transparent. I then just save as PNG.

In BlitzMax, you load the images as normal (the default flags are fine) and when displaying them, make sure that alphablend is enabled...

Global img:TImage=LoadImage("image.png")

SetBlend ALPHABLEND
DrawImage img,300,200
Flip


I generally set ALPHABLEND once just before the main loop and leave it.