I would like to take part of an image and make it into a new image in java script, so something like:
var image2 = new Image();
image2.src = image1.src(10,10)
obviously the stuff above is not going to work but what would?, examples are appreciated,
edit: and I want to crop it before I draw it
thank you.