How to use SetMaskColor ?

BlitzMax Forums/BlitzMax Beginners Area/How to use SetMaskColor ?

This is how to use SetMaskColor:

Strict

'** Constants **
	
	Const WIDTH:Int		= 640
	Const HEIGHT:Int	= 480
	Const DEPTH:Int		= 0
'** End Constants **

Graphics WIDTH, HEIGHT, DEPTH

SetMaskColor 255, 255, 255

Local testImage:TImage = LoadImage("testImage.bmp", MASKEDIMAGE)

MidHandleImage testImage

DrawImage testImage, WIDTH / 2, HEIGHT / 2

Flip

FlushMem

WaitKey

End


Maybe the backgroudcolor of your image isn't really white, open up in Paint or something and check it.

Nicolas.