EN
Java - save BufferedImage to PNG file
4 points
In this article, we want to show how to save BufferedImage to PNG file using Java.
Quick solution:
xxxxxxxxxx
1
// import java.io.File;
2
// import javax.imageio.ImageIO;
3
// import java.awt.image.BufferedImage;
4
5
BufferedImage image = ...
6
ImageIO.write(image, "PNG", new File("/path/to/output.png"));