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:
// import java.io.File;
// import javax.imageio.ImageIO;
// import java.awt.image.BufferedImage;
BufferedImage image = ...
ImageIO.write(image, "PNG", new File("/path/to/output.png"));