you should be able to do that with something like
matrix.preTranslate(-centerX, -centerY);
matrix.postTranslate(centerX, centerY);
--
http://www.deepdroid.com
On Jun 27, 10:32 am, "sagar.indianic" <[email protected]>
wrote:
> Hi all,
>
> I rotate image using setImageMatrix() function. I first use
> getImageMatrix() function to get matrix then i use matrix.postRotate
> (90). Rotation works fine. But it rotates around top/left corner of
> image. i want to change that pivot point to center of the image. how
> can I do that????
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---