I'm having trouble roating an image around itself using Canvas.
Since you can't rotate an image you have to rotate the canvas: if I rotate the canvas by a degree the origin around which I want to rotate changes. I don't get how to track this change.
This is my current code: http://pastie.org/669023
And a demo is at http://preview.netlashproject.be/cog/
If you want to give things a shot the zipped up code and image is at http://preview.netlashproject.be/cog/cog.zip