Class PNGImageEncoder
- java.lang.Object
-
- org.apache.xmlgraphics.image.codec.util.ImageEncoderImpl
-
- org.apache.xmlgraphics.image.codec.png.PNGImageEncoder
-
- All Implemented Interfaces:
ImageEncoder
public class PNGImageEncoder extends ImageEncoderImpl
An ImageEncoder for the PNG file format.- Since:
- EA4
-
-
Field Summary
-
Fields inherited from class org.apache.xmlgraphics.image.codec.util.ImageEncoderImpl
output
-
-
Constructor Summary
Constructors Constructor Description PNGImageEncoder(java.io.OutputStream output, PNGEncodeParam param)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(java.awt.image.RenderedImage im)
This method encodes aRenderedImage
into PNG.-
Methods inherited from class org.apache.xmlgraphics.image.codec.util.ImageEncoderImpl
encode, getOutputStream, getParam, setParam
-
-
-
-
Constructor Detail
-
PNGImageEncoder
public PNGImageEncoder(java.io.OutputStream output, PNGEncodeParam param)
-
-
Method Detail
-
encode
public void encode(java.awt.image.RenderedImage im) throws java.io.IOException
This method encodes aRenderedImage
into PNG. The stream into which the PNG is dumped is not closed at the end of the operation, this should be done if needed by the caller of this method.- Specified by:
encode
in interfaceImageEncoder
- Specified by:
encode
in classImageEncoderImpl
- Throws:
java.io.IOException
-
-