worldwind-ui API / worldwind-kit / captureScreenshot
Function: captureScreenshot() ​
captureScreenshot(
globe,options?):Promise<Blob>
Defined in: kit/src/screenshot.ts:17
Renders a frame and captures the canvas as an image. WebGL clears its buffer after each frame, so the capture happens inside WorldWind's redraw callback.
Parameters ​
globe ​
options? ​
ScreenshotOptions = {}
Returns ​
Promise<Blob>