Java BufferedImage to PNG image(BufferedImage image)

Here you can find the source of image(BufferedImage image)

Description

image

License

Apache License

Declaration

public static void image(BufferedImage image) 

Method Source Code


//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 _) {
        }
    }
}

Related

  1. imageAsBase64Png(Component c)
  2. imageToPNG(BufferedImage image)
  3. imageToPngFile(BufferedImage image, File pngFile)
  4. bufferedImageToFile(BufferedImage src, String path)