public class ImageFileWriter extends Object
Constructor and Description |
---|
ImageFileWriter() |
Modifier and Type | Method and Description |
---|---|
boolean |
writeAsPng(BufferedImage image,
String filePath)
Writes an image as a PNG file to the file system.
|
public boolean writeAsPng(BufferedImage image, String filePath) throws IOException
File
present, its contents are discarded.image
- a BufferedImage
to be written.filePath
- the path of the image file to create.false
if the image could not be saved.IOException
- if an error occurs during writing.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.