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(@Nonnull BufferedImage image, @Nonnull 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 © 2014 AssertJ. All rights reserved.