Trouble with Pixmaps

BlitzMax Forums/BlitzMax Beginners Area/Trouble with Pixmaps

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Graphics 800,600
Local Image = LoadImage ("Images/Cursor.png")
DrawImage(Image, 0,0)
Local Cheese:tpixmap = LockImage(Image)
DrawPixmap(Cheese, 64, 0)
Flip
Delay 5000

The image "Cursor.png" is an arrow with a pixel thin orange outline, in the image from the Pixmap this outline is now 2 pixels thick


Cheese = ColourSub(Cheese,0,0,128,200,140,0,32,19)

Function ColourSub:Tpixmap(Image:Tpixmap,OldR,OldG,OldB,NewR,NewG,NewB,w,h)
	MaskPixmap:Tpixmap(Image, OldR,OldG,OldB)
	SetClsColor NewR,NewG,NewB
	Cls
	DrawPixmap Image:TPixmap, 0, 0
	Image = GrabPixmap:TPixmap (0,0,w,h)
	SetClsColor 0,0,0
	Return Image
End Function

The function seems not to modify the pixmap at all, when I draw it out again after calling the function, it looks just like it did when it went in

I have checked the colour codes in MS Paint, 0,0,128 does indeed make up the main body of the arrow