skrypton-api / com.waicool20.skrypton.sikulix / SKryptonScreen / capture

capture

fun capture(): ScreenImage

Takes a screenshot of the whole screen.

Return
the captured image.

fun capture(region: Region): ScreenImage

Takes a screenshot of the screen.

Parameters

region - Sub-region to capture.

Return
the captured image.

fun capture(x: Int, y: Int, width: Int, height: Int): ScreenImage

Takes a screenshot of the screen.

Parameters

x - x coordinate of the sub-region.

y - y coordinate of the sub-region.

width - width of the sub-region.

height - height of the sub-region.

Return
the captured image.

fun capture(rect: Rectangle): ScreenImage

Takes a screenshot of the screen.

Parameters

rect - Sub-region to capture.

Return
the captured image.