[android-developers] What is exactly the X and Y coordinates in method canvas.rotate

2010-09-18 Thread jlopeznava...@gmail.com
Can anybody explain me what is exactly that coordinates? I have search for information but can't find properly info. I have some drawables objects wich I need to rotate, I have realized I need to add a constant value to that coordinates, if not they rotate wrong. I use this way:

Re: [android-developers] What is exactly the X and Y coordinates in method canvas.rotate

2010-09-18 Thread Kostya Vasilyev
The coordinates are the rotation's center point (called the pivot point in the docs). See here for an interactive demo: http://www.nbilyk.com/pivot-rotate-example If you set these coordinates to the center of the canvas, you'll get the most intuitive result. But other rotations are possible