Puts the ImageData into the context of this CanvasTexture at the given coordinates.
name | type | arguments | description |
---|---|---|---|
imageData | ImageData |
The ImageData to put at the given location. |
|
x | number |
The x coordinate to put the imageData. Must lay within the dimensions of this CanvasTexture and be an integer. |
|
y | number |
The y coordinate to put the imageData. Must lay within the dimensions of this CanvasTexture and be an integer. |
|
dirtyX | number | <optional> |
Horizontal position (x coordinate) of the top-left corner from which the image data will be extracted. |
dirtyY | number | <optional> |
Vertical position (x coordinate) of the top-left corner from which the image data will be extracted. |
dirtyWidth | number | <optional> |
Width of the rectangle to be painted. Defaults to the width of the image data. |
dirtyHeight | number | <optional> |
Height of the rectangle to be painted. Defaults to the height of the image data. |
This CanvasTexture.