Takes a screenshot of the whole screen or a rectangular region on the screen and saves it to a bitmap file or clipboard.