To set the size of an image using HTML5 Canvas, we can add two additional arguments to the drawImage() method, width and height.
Code Editor
Modified on April 8th, 2013
by Eric Rowell
To set the size of an image using HTML5 Canvas, we can add two additional arguments to the drawImage() method, width and height.