Drawing an image from a data URL to a canvas
Given a data URL, you can create an image (either on the page or purely in JS) by setting the src of the image to your data URL. For example: var img = new Image; img.src = strDataURI; The drawImage() method of HTML5 Canvas Context lets you copy all or a portion of an image … Read more