The OpenD Programming Language

trueColorImageFromNativeHandle

Implementation used by SimpleWindow.takeScreenshot.

trueColorImageFromNativeHandle
(
PaintingHandle handle
,
int width = 0
,
int height = 0
,
int x = 0
,
int y = 0
)

Parameters

handle PaintingHandle

the native window handle. If NativeWindowHandle.init, it will attempt to get the whole screen.

width int

the width of the image you wish to capture. If 0, it will attempt to capture the full width of the target.

height int

the height of the image you wish to capture. If 0, it will attempt to capture the full height of the target.

x int

the x-offset of the image to capture, from the left.

y int

the y-offset of the image to capture, from the top.

Meta

History

Added on March 14, 2021

Documented public on September 23, 2021 with full support for null params (dub 10.3)