Class PNGImageDecoder
- java.lang.Object
-
- org.apache.xmlgraphics.image.codec.util.ImageDecoderImpl
-
- org.apache.xmlgraphics.image.codec.png.PNGImageDecoder
-
- All Implemented Interfaces:
ImageDecoder
public class PNGImageDecoder extends ImageDecoderImpl
- Version:
- $Id: PNGImageDecoder.java 1732018 2016-02-24 04:51:06Z gadams $
-
-
Field Summary
-
Fields inherited from class org.apache.xmlgraphics.image.codec.util.ImageDecoderImpl
input, param
-
-
Constructor Summary
Constructors Constructor Description PNGImageDecoder(InputStream input, PNGDecodeParam param)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RenderedImagedecodeAsRenderedImage(int page)Returns aRenderedImagethat contains the decoded contents of theSeekableStreamassociated with thisImageDecoder.static voidreadPNGHeader(ImageInputStream inputStream, ImageSize size)-
Methods inherited from class org.apache.xmlgraphics.image.codec.util.ImageDecoderImpl
decodeAsRaster, decodeAsRaster, decodeAsRenderedImage, getInputStream, getNumPages, getParam, setParam
-
-
-
-
Constructor Detail
-
PNGImageDecoder
public PNGImageDecoder(InputStream input, PNGDecodeParam param)
-
-
Method Detail
-
decodeAsRenderedImage
public RenderedImage decodeAsRenderedImage(int page) throws IOException
Description copied from class:ImageDecoderImplReturns aRenderedImagethat contains the decoded contents of theSeekableStreamassociated 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:
decodeAsRenderedImagein interfaceImageDecoder- Specified by:
decodeAsRenderedImagein classImageDecoderImpl- Parameters:
page- The page to be decoded.- Throws:
IOException
-
readPNGHeader
public static void readPNGHeader(ImageInputStream inputStream, ImageSize size) throws IOException
- Throws:
IOException
-
-