screenshot

fun screenshot(save: String)

Takes and saves a screenshot.

Parameters

save

The path to the screenshot. The file extension will determine its format.

screenshot("path/to/screenshot.png")
screenshot("path/to/screenshot2.jpg")
screenshot("path/to/screenshot3.bmp")