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.
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.
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.
Return
the captured image.