how to change the point of the ratation in a image

Monkey Forums/Monkey Programming/how to change the point of the ratation in a image

Lugato(Posted 2012) [#1]
Hi to all ..

Anyone can give a little help ?

I need rotate a background image, but the point of ratation is set in top-left of the image.. I don't found a command in documentation to do it ..

thanks


therevills(Posted 2012) [#2]
I think you can only do this using translate...

(and its rotation ;))


Shinkiro1(Posted 2012) [#3]
(just guessing) Use image.SetHandle (x,y)
http://blitz-wiki.appspot.com/Image.SetHandle


Aman(Posted 2012) [#4]
http://blitz-wiki.appspot.com/Image?format=mobile

SetHandle does the job. You can use Image.MidHandle when you load the image to set it to the middle point.


therevills(Posted 2012) [#5]
Ah yes... SetHandle would do it too -_-

But heres how to do it with translate:


Or you could just use SetHandle ;)


Lugato(Posted 2012) [#6]
Thanks therevills, shinkiro and Aman ..

I used the traslate aproach first .. but really the SetHandle is more easy to use in the project that I'm making ..

I think that the Monkey documentation wiki need a list of all methods each module have, because I don't see the SetHandle in the list of Graphics functions..

:)


therevills(Posted 2012) [#7]
because I don't see the SetHandle in the list of Graphics functions..


Thats because its part of Image, not Graphics ;)


Lugato(Posted 2012) [#8]
Ops..

My fault, I think I need talk with wiki a little more hahahhaha