Hello,
I want to display my image in HTML5 Canvas.
Following is my code
var canvas = document.getElementById(“canvas”);
var ctx = canvas.getContext(“2d”);
var img = new Image();
img.src = “Capture.PNG”;
ctx.drawImage(img, 500, 500);
But it’s not working.
Thanks
Ankur