How to rotate an image in Javascript
Posted: Mon May 03, 2010 6:50 am
Hello Everyone,
I have an application in PHP which acts like a Image Editor kind of stuff. Now I have already implemented the functions for image resizing, image rotation,alignment, and moving the image around the whole area. Now the problem is that image rotation works like this, i have got 2 buttons, rotate left, rotate right, when the user clicks on rotate left, the PHP Script performs the neccessary function. But now, what i need is when i place my mouse pointer at the corners of the image, the cursor should change to the rotate image icon and then i could be able to rotate the image by moving my mouse. I tried googling, but i did not get any relevant answer.
Please can anybody of you guide me like, how should i go about this problem.
Thanks in Advance

I have an application in PHP which acts like a Image Editor kind of stuff. Now I have already implemented the functions for image resizing, image rotation,alignment, and moving the image around the whole area. Now the problem is that image rotation works like this, i have got 2 buttons, rotate left, rotate right, when the user clicks on rotate left, the PHP Script performs the neccessary function. But now, what i need is when i place my mouse pointer at the corners of the image, the cursor should change to the rotate image icon and then i could be able to rotate the image by moving my mouse. I tried googling, but i did not get any relevant answer.
Please can anybody of you guide me like, how should i go about this problem.
Thanks in Advance