The Pursuit of Happyness

반응형

public boolean saveImage(String fileName, BufferedImage bufferedImage) throws Exception
{
File file = new File(fileName);
return ImageIO.write(bufferedImage, "png", file);
}

반응형