11-10-2014 Saat: 13:28
Bir canvas üzerine bir resim çizmek için aşağıdaki metodu kullanacağız:
drawImage(image,x,y)

drawImage(image,x,y)

PHP Kod:
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
var img = document.getElementById("scream");
ctx.drawImage(img,10,10);