org.apache.batik.ext.awt.image.codec.png
Class PNGImageDecoder
java.lang.Object
org.apache.batik.ext.awt.image.codec.util.ImageDecoderImpl
org.apache.batik.ext.awt.image.codec.png.PNGImageDecoder
- All Implemented Interfaces:
- ImageDecoder
public class PNGImageDecoder
- extends ImageDecoderImpl
Method Summary |
RenderedImage |
decodeAsRenderedImage(int page)
Returns a RenderedImage that contains the decoded
contents of the SeekableStream associated
with this ImageDecoder . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PNGImageDecoder
public PNGImageDecoder(InputStream input,
PNGDecodeParam param)
decodeAsRenderedImage
public RenderedImage decodeAsRenderedImage(int page)
throws IOException
- Description copied from class:
ImageDecoderImpl
- Returns a
RenderedImage
that contains the decoded
contents of the SeekableStream
associated
with this ImageDecoder
.
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 interface ImageDecoder
- Specified by:
decodeAsRenderedImage
in class ImageDecoderImpl
- Parameters:
page
- The page to be decoded.
- Throws:
IOException
Copyright © 2008 Apache Software Foundation. All Rights Reserved.