Forum Moderators: open

Message Too Old, No Replies

Rotation

Rotate Image

         

Adam5000

9:18 pm on Jul 27, 2005 (gmt 0)

10+ Year Member



Hello everyone. Thanks to everyone for their previous help. You've all been fabulous.

I've got another small project going and I need some help with it.

I'm looking for a command that rotates an image. Instead of the sides of the image being squared up at the 90/180 degree marks, I'd like the image to appear on the screen tilted say 20 degrees clockwise.

Help.

RonPK

2:19 pm on Jul 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



JavaScript can't do that easily. But I have seen tricks that create DIVs for each pixel in the image; every DIV contains the entire image but is clipped to show only one pixel. These DIVs can then be repositioned on demand. For a 100px x 100px image, 10,000 DIVs will be created, so the script requires quite some memory.

Google for 'javascript rotate image': the 3rd result appears to show a working script.

kaled

10:04 am on Jul 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There may be a perl solution to this problem. Try forum13.

Kaled.

Adam5000

11:31 am on Jul 31, 2005 (gmt 0)

10+ Year Member



You're right. The rotation effect may be a little difficult. I may do something with it later. Thanks for your help and I appreciate your help.