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
| ||
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 |
| ||
I think you can only do this using translate... (and its rotation ;)) |
| ||
(just guessing) Use image.SetHandle (x,y) http://blitz-wiki.appspot.com/Image.SetHandle |
| ||
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. |
| ||
Ah yes... SetHandle would do it too -_- But heres how to do it with translate: Or you could just use SetHandle ;) |
| ||
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.. :) |
| ||
because I don't see the SetHandle in the list of Graphics functions.. Thats because its part of Image, not Graphics ;) |
| ||
Ops.. My fault, I think I need talk with wiki a little more hahahhaha |