HTML Canvas Images
Canvas Image
Canvas allows us to draw an image on it. In other words, we can embed or use image within canvas. To draw an image on a canvas, we have to use the drawImage(img, x, y) method.
drawImage() function's parameters are:-
- image itself that is to be displayed on canvas.
- x-coordinate of the image.
- y-coordinate of the image.