+ 1
Canvas
How to add image in canvas
1 ответ
+ 1
Try this:
var img = new Image();
img.onload = function() { context.drawImage(img, x, y); };
img.src = "example.jpg";
The x and y coordinates are where to insert the image, "example.jpg" is a link to the image.