SceneInterface.screenshot() method
Capture a screenshot of the scene.
Signature:
screenshot<T extends ScreenshotType>(options: ScreenshotOptions & {
type: T;
}): Promise<ScreenshotResult<T>>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
options |
ScreenshotOptions & { type: T; } |
Returns:
Promise<ScreenshotResult<T>>
A data URI or Blob depending on the type option.