Class PngWriter
java.lang.Object
org.apache.commons.imaging.formats.png.PngWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeImage
(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 beNULL
to use the defaultPngImagingParameters
).paletteFactory
- The palette factory to use (can beNULL
to use the defaultPaletteFactory
).- Throws:
ImagingException
- When errors are detected.IOException
- When IO problems occur.
-