0
Help (description)
How do i set the size of the image that im pasting in the canvas? Example: <img id="png" src="example.png" width="32" height="32"> var png = document.getElementById("png"); ctx.imageSize(32,32) ctx.drawImage(png,0,0);
1 Respuesta
+ 1
Draw image on canvas:
https://www.w3schools.com/tags/canvas_drawimage.asp