code: public static void captureScreen(final File file) {
  		Rectangle rectangle = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
  		captureScreenRect(file, rectangle);
  	}
docs: Captures the whole screen and saves it as png to the specified file. The file must have the
  extension {@code png}. Any necessary but non-existent parent directories of the specified
  file are created.
  
  @param file
  the file to save the screenshot to