Java examples for 2D Graphics:PNG
save BufferedImage As Png
//package com.java2s; import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; public class Main { public static void saveAsPng(BufferedImage image, File to) throws Exception { ImageIO.write(image, "png", to); }/* ww w . j a v a2 s . c om*/ }