takeScreenshot

fun takeScreenshot(fileHandle: FileHandle)

Takes a screenshot of the entire screen and saves the image using the given fileHandle.