View Full Version : turn a picture
01-01-2007, 07:38 AM
I want to put this option in my image gallery?
01-01-2007, 10:01 AM
01-01-2007, 08:11 PM
I found this
Looks kind of buggy to me and at a glance I don't really understand how it is achieving the results it gets.
01-01-2007, 11:01 PM
It does it the way I suggested by your having one huge image that contains a whole lot of smaller images of the same thing with different rotations and then changing which part of the large image actually displays so as to display that part wich shows the small image with the desired rotation.
01-01-2007, 11:27 PM
Actually it looks like it is creating divs for each pixel in the graphic then drawing the graphic for each div using the Math package to determine where that pixel should be based on a degree rotation and using styles for clipping to only show that one pixel in the right spot.
I think your idea would be better.
there's no big image, just the regular one but the principle is similar.
It seems to work creating as many copies of the image as there are pixels in the image, and offsetting each one so that it effectively shows a pixel. It then positions these single-pixel 'windows' in such a way that it appears the image is rotated.
It's quite clever in my opinion, and the maths behind it is pretty complicated, but I can't really see it being practical, as it's quite slow, even on the small test images.
someone can type faster than me! :)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.