Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.     public static void writeImage(BufferedImage image, File file) throws IOException {
  2.         //Slow
  3.         ImageIO.write(image, "PNG", file);
  4.  
  5.         //Faster, but hopefully there's no transparency on the image
  6.         ImageIO.write(image, "JPG", file);
  7.     }