Optionalantidefines the antialiasing quality, higher is better. (range: [0, 32], default: 32)
Optionalbackgroundcan 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
Optionalmesheslist of meshes which should be rendered, if null all meshes in the scene will be renderd (default: null)
OptionalmimeMIME-Type of the data uri (default: "image/png")
Optionaloncallback which will be called after the rendering
Optionaloncallback which will be called before the rendering
OptionalonAllows do draw a background for the generated screenshot. Only called if the current background color is transparent.
Optionalonallows do draw an overlay on the generated screenshot
Optionalpixelpixel scale factor is used to scale certain elements like 2D text (default: 1.0)
Optionalrenderif true the rendering will be performed asynchronously (default: false)
Optionalssaocan be used to override the viewer ssaoQuality
OptionaltargetOptional 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
Screenshot generation options.