Hi everybody
I have a weird problem with a small game I'm writing. I've searched the forums without finding any answers. If this is something really basic, please forgive me.
The problem is that when I blit an image, all its black (0,0,0) pixels become transparent. I haven't used maskimage or anything like that. I don't want the black pixels to be transparent! Of course I could redraw the graphics and use 1,1,1 as black instead of 0,0,0 but that just feels stupid.
Here's a small test-program I wrote:
Any ideas?
--
Martin Gunnarsson
I have a weird problem with a small game I'm writing. I've searched the forums without finding any answers. If this is something really basic, please forgive me.
The problem is that when I blit an image, all its black (0,0,0) pixels become transparent. I haven't used maskimage or anything like that. I don't want the black pixels to be transparent! Of course I could redraw the graphics and use 1,1,1 as black instead of 0,0,0 but that just feels stupid.
Here's a small test-program I wrote:
Graphics 640,480,0,2 pic=LoadImage("test.png") ClsColor 51,102,153 While Not KeyDown(1) SetBuffer BackBuffer() Cls DrawImage(pic,100,100) Flip Wend
Any ideas?
--
Martin Gunnarsson