captureAsImage

external fun captureAsImage(filePath: String, rect: Rect): Int

Make a screen region capture of the current map in JPEG format. No cursor/on-screen info is included.

Parameters

filePath

File path.

rect

The screen rectangle to capture. If ( 0, 0, 0, 0) is provided then the entire map screen is captured.


external fun captureAsImage(buffer: DataBuffer, rect: Rect): Int

Make a screen region capture of the current map in JPEG format. No cursor/on-screen info is included.

Parameters

buffer

The buffer in which the capture is made.

rect

The screen rectangle to capture. If ( 0, 0, 0, 0) is provided then the entire map screen is captured.


external fun captureAsImage(rect: Rect): Image?

Make a screen region capture of the current map in JPEG format. No cursor/on-screen info is included.

Parameters

rect

The screen rectangle to capture. If ( 0, 0, 0, 0) is provided then the entire map screen is captured.