Class PngWriter
java.lang.Object
org.apache.commons.imaging.formats.png.PngWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteImage(BufferedImage src, OutputStream os, PngImagingParameters params, PaletteFactory paletteFactory) Writes an image to an output stream.
-
Constructor Details
-
PngWriter
public PngWriter()
-
-
Method Details
-
writeImage
public void writeImage(BufferedImage src, OutputStream os, PngImagingParameters params, PaletteFactory paletteFactory) throws ImagingException, IOException Writes an image to an output stream.- Parameters:
src- The image to write.os- The output stream to write to.params- The parameters to use (can beNULLto use the defaultPngImagingParameters).paletteFactory- The palette factory to use (can beNULLto use the defaultPaletteFactory).- Throws:
ImagingException- When errors are detected.IOException- When IO problems occur.
-