Image Transparency

BlitzMax Forums/BlitzMax Programming/Image Transparency

How do you set which color is transparent in an image?

SetMaskColor(red,green,blue), before loading your image with the 'MASKEDIMAGE' flag.

In the Docs is say 'when images are loaded or modified'. Is there a way of changing an images mask afterwards ?

Change the Alpha imformation of the underlying PixMap?

In fact you should ALWAYS use Alpha values over colours, that way you can have smooth border.

You can change the mask once after loading with this otherwise you can use setimagemask