Class PngWriter
java.lang.Object
org.apache.commons.imaging.formats.png.PngWriter
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidwriteImage(BufferedImage src, OutputStream os, PngImagingParameters params, PaletteFactory paletteFactory) Writes an image to an output stream.
- 
Constructor Details- 
PngWriterpublic PngWriter()
 
- 
- 
Method Details- 
writeImagepublic 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 be- NULLto use the default- PngImagingParameters).
- paletteFactory- The palette factory to use (can be- NULLto use the default- PaletteFactory).
- Throws:
- ImagingException- When errors are detected.
- IOException- When IO problems occur.
 
 
-