Capture current frame of the canvas to the image with specified width, height and background color.
Signature:
dumpScreen(width: number, height: number, bgColor?: Array<number>, filter?: string): any;
Parameter | Description |
---|---|
width | The width of screen capture image in pixels. |
height | Ditto. |
bgColor | The background color of dumped image. By default it is light gray. |
filter | filter css for screen img |
Returns:
any
The base64 encoded image blob.