Optional
antidefines the antialiasing quality, higher is better. (range: [0, 32], default: 32)
Optional
backgroundcan be used to override the viewer backgroundColor, for transparent backgrounds a premultiplied alpha color has to be used e.g. (0, 0, 0, 0)
height of the image in pixel
Optional
mimeMIME-Type of the data uri (default: "image/png")
Optional
oncallback which will be called after the rendering
Optional
oncallback which will be called before the rendering
Optional
onAllows do draw a background for the generated screenshot. Only called if the current background color is transparent.
Optional
onallows do draw an overlay on the generated screenshot
Optional
pixelpixel scale factor is used to scale certain elements like 2D text (default: 1.0)
Optional
renderif true the rendering will be performed asynchronously (default: false)
Optional
ssaocan be used to override the viewer ssaoQuality
Optional
targetOptional target canvas. If defined the screenshot will be rendered into this canvas.
Viewer.createScreenshot()
will return an empty string in this case.
width of the image in pixel
Generated using TypeDoc
Base screenshot generation options.