handleimage?

BlitzMax Forums/BlitzMax Beginners Area/handleimage?

koekjesbaby(Posted 2005) [#1]
is it possible in bmax to rotate images around another point than their upper left corner or center point? i have tried to use sethandle, but it only seems to affect shapes but not images...
Graphics(640,480,0)
Local img:timage = LoadImage("test.png")
Local rot

While Not KeyHit(key_escape)
	Cls()
	
	SetHandle(MouseX(), MouseY())
	SetRotation(rot)
	
	DrawImage(img, 320,240) ' just rotates around its corner
	DrawRect(320,240,200,50) ' rotates correctly
	
	rot :+ 1
		
	Flip()
	FlushMem()
Wend


am i doing something wrong or is it just impossible in bmax (which would be strange)?


tonyg(Posted 2005) [#2]
Try SetImageHandle or MidHandleImage


koekjesbaby(Posted 2005) [#3]
how the <bleep> did i miss that? i am silly ;)