I am creating a website where a user is able to upload an image and then rotate or move it around on a background. The final position of the image is then recorded in some way (bitmap?) and sent with some form results.
I’m a bit lost as to how to do this, the website is built using asp.net, I presume what I am trying to do could be done in Silverlight, javascript, flash, flex or maybe html5?
If anyone knows the best way of doing this or can link to a resource or tutorial I would be grateful. I would prefer not to do it in flash or flex as I am unfamiliar with them and do not have the tools installed to edit them. I would prefer Silverlight or javascript solution.
Thanks,
nl
I’d recommend doing this in javascript. At a high level, you just need an element on the page to contain your image, some basic code to allow the user to drag the container around (much of this is available prebuilt through frameworks like mootools), and some logic to save the final element position after the user is done positioning it.
I’m not sure what you mean by saving it as a bitmap, but I’d recommend just saving the element’s x and y offset coordinates from the top-left corner of its container. Again, there are readily available frameworks that will do pretty much all of the positioning computations for you.
Here is an example site that implements draggable images with persistent state between sessions: http://webcomix.no-ip.org