Home > @magiclane/maps-sdk > GemView > captureImage
GemView.captureImage() method
Make a screen region capture of the current map in JPEG format.
No cursor or on-screen information is included. On Android it includes the cursor and any on-screen information.
Signature:
captureImage(): Promise<Uint8Array | null>;Returns:
Promise<Uint8Array | null>
An image of the map shown on the screen.
Exceptions
An exception if it fails.