captureScreenshot
Takes a screenshot of the scene in PNG format.
Example
Usage
const imageDataPromise = viewer3d.captureScreenshot();Return Value
Promise that resolves to the base64 encoded string of the PNG image.
Type |
|---|
Promise => String |
Takes a screenshot of the scene in PNG format.
const imageDataPromise = viewer3d.captureScreenshot();Promise that resolves to the base64 encoded string of the PNG image.
Type |
|---|
Promise => String |