Class PNGImageDecoder
java.lang.Object
org.apache.xmlgraphics.image.codec.util.ImageDecoderImpl
org.apache.xmlgraphics.image.codec.png.PNGImageDecoder
- All Implemented Interfaces:
ImageDecoder
- Version:
- $Id$
-
Field Summary
Fields inherited from class org.apache.xmlgraphics.image.codec.util.ImageDecoderImpl
input, param
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeAsRenderedImage
(int page) Returns aRenderedImage
that contains the decoded contents of theSeekableStream
associated with thisImageDecoder
.static void
readPNGHeader
(ImageInputStream inputStream, ImageSize size) Methods inherited from class org.apache.xmlgraphics.image.codec.util.ImageDecoderImpl
decodeAsRaster, decodeAsRaster, decodeAsRenderedImage, getInputStream, getNumPages, getParam, setParam
-
Constructor Details
-
PNGImageDecoder
-
-
Method Details
-
decodeAsRenderedImage
Description copied from class:ImageDecoderImpl
Returns aRenderedImage
that contains the decoded contents of theSeekableStream
associated with thisImageDecoder
. The given page of a multi-page image is decoded. If the page does not exist, an IOException will be thrown. Page numbering begins at zero.- Specified by:
decodeAsRenderedImage
in interfaceImageDecoder
- Specified by:
decodeAsRenderedImage
in classImageDecoderImpl
- Parameters:
page
- The page to be decoded.- Throws:
IOException
-
readPNGHeader
- Throws:
IOException
-