Viewer3DBase.dumpScreen() method

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;

Parameters

ParameterDescription
widthThe width of screen capture image in pixels.
heightDitto.
bgColorThe background color of dumped image. By default it is light gray.
filterfilter css for screen img

Returns:

any

The base64 encoded image blob.