Optionalbackground?: Color | RGBAColor | ColorRepresentationThe background of the screenshot. If not provided, the currently set background of the renderer/scene will be used
Optionalcamera?: Camera | ICamera | nullThe camera to use for the screenshot. If not provided, the main camera of the context will be used.
Optionalcontext?: Pick<The context to take the screenshot from. If not provided, the current context will be used.
Optionalheight?: numberThe height of the screenshot - if not provided, the height of the current renderer will be used.
OptionalmimeType?: ScreenshotImageMimeTypeThe mime type of the image
Optionalrender_events?: booleanIf true onBeforeRender and onAfterRender will be invoked on all renderers in the scene.
Optionaltransparent?: booleanIf true, the background will be transparent.
Optionaltrim?: booleanIf true, the image will be trimmed to the non-transparent area. Has no effect if transparent is false.
Optionalwidth?: numberThe width of the screenshot - if not provided, the width of the current renderer will be used.
Options for the screenshot2 function.