Here you can find the source of image(BufferedImage image)
public static void image(BufferedImage image)
//package com.java2s; /* Copyright (c) 2015 "Naftoreiclag" https://github.com/Naftoreiclag * * Distributed under the Apache License Version 2.0 (http://www.apache.org/licenses/) * See accompanying file LICENSE//from w w w. j av a2 s .com */ import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; public class Main { public static void image(BufferedImage image) { try { ImageIO.write(image, "png", new File("debug123.png")); } catch (Exception _) { } } }