How is it possible to zoom a photo contained in a <canvas>
tag?
In particular I'd like to zoom in on the photo at the point the user clicked.
The zoom is not difficult to do:
img.width = img.width + 100;
img.height = img.height + 100;
ctx.drawImage(img,0,0,img.width,img.height);
The problem is that I would also like to center the zoomed image in the point of the click, like a normal magnifier.