Property:
drawImage:
img,10,-100
img,10,-50
img,10,-10
img,10,0
img,10,10
img,10,20
img,10,30
img,10,50
img,10,100
img,10,200
Canvas:
your browser does not support the canvas tag
Code:
var img=document.createElement('img');
img.src='img_the_scream.jpg';
img.onload = function () {
var c=document.getElementById('myCanvas');
var ctx=c.getContext('2d');
ctx.drawImage(
img,10,10)
;
}
Click the property values above to see the result
w3ii.com
- Play it