public class PNGImageSaver extends Object implements ImageSaver
Constructor and Description |
---|
PNGImageSaver() |
Modifier and Type | Method and Description |
---|---|
void |
save(BufferedImage image,
String fileName)
Saves an image into a PNG image file.
|
public void save(BufferedImage image, String fileName) throws IOException
save
in interface ImageSaver
image
- an image to be saved.fileName
- a file to load image from.IOException