Masking Scaled Images

Blitz3D Forums/Blitz3D Beginners Area/Masking Scaled Images

I know this has to have been covered somewhere before, but I just can't find it. So anyway. I load the images for my GUI and then mask them and scale them to the appropriate size for the particular screen resolution, but whenever I scale the images, the masking is messy. take a look.

Graphics 640, 480

Global lArrow = LoadImage("lArrow.bmp")
MaskImage lArrow, 255, 255, 255
ScaleImage larrow, 1.5, 1.5

ClsColor 0, 200, 200
Cls

DrawImage lArrow, 200, 200

While Not KeyHit(1)
	
Wend


Is there any way to get effective image masking and scaling at the same time?

You need to put "TFormFilter False" before scaling the image. It disables bi-linear filtering, which is what is screwing up your masking.

Works like a charm, thanks!

big10p: nice answer!

Er, thanks. :)