Skip to content

ScreenshotOptions

new ScreenshotOptions(): ScreenshotOptions

ScreenshotOptions

optional antialias?: boolean

Whether the image should be anti-aliased Defaults to false


optional compression?: number

Compression factor for JPEG, images between 0.0 and 1.0. Defaults to 1.0


optional height?: number

The height of the image in pixels, must be > 0 Defaults to the height of the viewport


optional renderOptions?: object

Additional rendering options for the screenshot each of the following options defaults to ‘false’.

NOTE: This is not available with the Ruby version of the JSA backend.

Name Type

disableAnnotations?

boolean

disableAspectRatioBands?

boolean

disableShadows?

boolean

disableWatermarks?

boolean

enableAxes?

boolean

retainAxes?

boolean

retainView?

boolean

thumbnail?

boolean

whiteBackground?

boolean

SDK 2.30.1, Protocol 1.25.2


optional scaleFactor?: number

Scaling factor for elements that are viewport dependent, such as text heights, arrow heads, line widths, stipple patterns, etc. Defaults to 1.0


optional transparent?: boolean

Whether the image should have transparency Defaults to false


optional width?: number

The width of the image in pixels, must be > 0 Defaults to the width of the viewport