Skip to main content

Function: captureCanvasScreenshot()

captureCanvasScreenshot(canvas): void

Captures a screenshot of the canvas element and downloads it as a PNG file.

Parameters

canvas: HTMLCanvasElement

DOM node of the canvas element

Returns

void

Defined in

util/capture-canvas-screenshot.ts:9