javascript canvas rescaling and drawing on image
How can I use Canvas to draw over images downloaded by users, while scaling it?
Example:
- user uploaded image
- began to draw on it
- zoom out and continued to draw more
All changes ar开发者_开发知识库e applied to the original image.
One issue you will run into is IE. IE does not support canvas but you can use a library like ex-canvas to do the same in VML.
Canvas does allow to import images. When you do draw image you can set the size. I'm not sure if this is supported in VML\IE though.
ctx.drawImage(img,j*50,i*38,50,38);
精彩评论