Documentation / @ripl/canvas / canvasDrawImage
Function: canvasDrawImage()
canvasDrawImage(
ctx,image,x,y,width?,height?):void
Defined in: canvas/src/helpers.ts:248
Draws an image onto a canvas context with optional width and height.
Parameters
| Parameter | Type |
|---|---|
ctx | CanvasRenderingContext2D |
image | CanvasImageSource |
x | number |
y | number |
width? | number |
height? | number |
Returns
void