HTML5 Canvas Image Size Tutorial

To set the size of an image using HTML5 Canvas, we can add two additional arguments to the drawImage() method, width and height.

new window

Code Editor

Modified on April 8th, 2013 by Eric Rowell
comments powered by Disqus