Skip to content

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 ​

GlobeController

options? ​

ScreenshotOptions = {}

Returns ​

Promise<Blob>

MIT licensed. Not affiliated with NASA; WorldWind is NASA's open-source virtual globe.