public class ImageFileWriter extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Writes an image as a PNG file to the file system.
public boolean writeAsPng(@Nonnull BufferedImage image, @Nonnull String filePath) throws IOException
Filepresent, its contents are discarded.
BufferedImageto be written.
filePath- the path of the image file to create.
falseif the image could not be saved.
IOException- if an error occurs during writing.
Copyright © 2014–2017 AssertJ. All rights reserved.