It can be done, but it's heavy and hackish. (And no, I don't know whether there is a public API for it.)
You would need to use js and css, create an absolutely positioned div for every visible pixel of the image, and offset the background image to the pixel you wish to display. With such a scheme, you could do any kind of manipulation you wished! One example (others exist too if you can find the right Google query): http://www.walterzorn.com/rotate_img/rotate_img.htm?A=30 If you're not afraid of IE-only, then something like this may work for you: http://elouai.com/javascript/javascript-image-rotate.php TAG On Oct 10, 2006, at 6:05 AM, Christophe Porteneuve aka TDD wrote: > > Hey Benjamin, > > Benjamin Mack a écrit : >> yes, but I think for shearing one needs only to modify the corner >> points >> of an image, but yes, I haven't found anything on this yet. > > Yes, but there's no such thing as a non-rectangular box in JS/CSS/DOM, > except for image map areas, which is beside our issue. > >> Yes, Flash is a possibility of course, but I would love to make this >> happen with Javascript and avoid flash. > > I'm pretty confident you won't. Even SVG doesn't offer much for > this, I > believe, at least SVG Tiny. And many browsers, including IE, don't > support SVG anyway. > > A lightweight Flash, like you see these days for audio playback and > the > like, is probably your best bet. And this, from a guy who avoids > Flash > as much as possible :-) > > -- > Christophe Porteneuve aka TDD > [EMAIL PROTECTED] > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
