readImageToCanvas Method
Reads the current image from this viewport into an HTMLCanvasElement with a Canvas2dRenderingContext such that additional 2d graphics can be drawn onto it.
readImageToCanvas(): HTMLCanvasElement
@see readImageBuffer to obtain the image as an array of RGBA pixels.
Returns - HTMLCanvasElement
Defined in
- core/frontend/src/Viewport.ts Line 2706
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.