Creating a draggable, resizable image on canvas

I am reading this tutorial about creating drag-and-drop and resizable rectangles http://simonsarris.com/blog/225-canvas-selecting-resizing-shape

This is good, and I want to create a similar one using images, and this is what I did http://jsfiddle.net/LUhsK/2/

all I did was change the script, which, instead of drawing a square, I draw the image specified by the image source, initial X, initial Y, width and height, but as you can see, this does not work. I really can't find what seems like a problem

+3
source share
1 answer

, , ,

droppedElement = ui.helper.clone();
droppedElement.resizable();
0

All Articles