I need to rotate the image on an annotation. I have tried doing a 2Dmatrix on an ImageView and then doing .toImage() of the imageview for the image property of the annotation, but it doesn't rotate the image, it just shows the image in it's original position.
Anyone have any ideas how this could be done?
did you try animating the view-a that is in container view-b and then doing a toImage() on view-b?
I apologize in advance, I haven't tried this, just thinking out loud
Annotation is not a view and tahts why it is impossible to cal methods of a view. May be you can change the URL of image.
When you perform an animation on a view it does not affect the original image - only the way the view actually displays, think of it more as rotating the rectangular region the
imageView is displayed within.
This is why it does not work with a
toImage() directly or even if you try saving the rotated image to the file system - then referencing it.
You will have to use a third-party module/tool to rotate the image at image level, or supply a rotated image to start with - if you are able of course.
Think you can help? Login to answer this question!