imageView.SetRotation(theta) centerize the view around the pivot point and rotates the image around this pivot by theta degrees, thats nice, but how can i rotate an image view without first centerizing it around this pivot?
to clearify my question, imagine a board and an image on it, what setRotation does is sticking a pin in the middle of this image and rotate it then, what i want is to pick a pivot – say image’s bottom left stick a pin there and then rotate it.
hopefully my question is clear, and solveable!
thanks!
You can set a new pivot point using:
After that, the rotation will be made using the new pivot point set by the above methods.
–EDITED–
I used this method to add a
ImageViewto my layout.I called the method with this parameters:
Finally, you just click on the image, and the image rotates 45 degrees.
regards