DrawImageResize
Callable
Parameters
Source: string | HTMLCanvasElement | HTMLImageElement
URL of image or image itself
X: number
Position of the image on the X axis
Y: number
Position of the image on the Y axis
Width: number
Width of the image after being resized
Height: number
Height of the image after being resized
Returns boolean
- whether the image was complete or not
Draws a resized image from a source to the main canvas