Interface CanvasDrawImage
interface CanvasDrawImage { drawImage(image: CanvasImageSource,
dx: number,
dy: number): void; drawImage(image: CanvasImageSource,
dx: number,
dy: number,
dw: number,
dh: number): void; drawImage(image: CanvasImageSource,
sx: number,
sy: number,
sw: number,
sh: number,
dx: number,
dy: number,
dw: number,
dh: number): void; } Methods
drawImage
- drawImage(image, dx, dy): void
Returns void
- drawImage(image, dx, dy, dw, dh): void
Returns void
- drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh): void
Parameters
- image: CanvasImageSource
- sx: number
- sy: number
- sw: number
- sh: number
- dx: number
- dy: number
- dw: number
- dh: number
Returns void
MDN Reference