SuperStrict Const WIDTH:Int = 640,HEIGHT:Int = 480, DEPTH:Int = 0 Graphics WIDTH,HEIGHT,DEPTH SetBlend MASKBLEND Local test1:TPixmap = LoadPixmap("sprite/test.png") Local test2:TPixmap = MaskPixmap(test1,255,255,255) SetClsColor(255,255,255) While Not KeyDown(KEY_ESCAPE) Cls DrawPixmap(test1,200,300) DrawPixmap(test2,300,300) Flip Wend
here is my result:
Click here!
I thought that by using maskpixmap, I could make a color (255,255,255 in this case) to become transparent. But, to me in my example, it becomes black, and the other colors become thicker. o0
Please explain this to me, I am at a loss, and I found very little information about pixmaps when I tried to search around.