public class PNGImageDecoder extends ImageDecoderImpl
input, param
Constructor and Description |
---|
PNGImageDecoder(InputStream input,
PNGDecodeParam param) |
Modifier and Type | Method and Description |
---|---|
RenderedImage |
decodeAsRenderedImage(int page)
Returns a
RenderedImage that contains the decoded
contents of the SeekableStream associated
with this ImageDecoder . |
decodeAsRaster, decodeAsRaster, decodeAsRenderedImage, getInputStream, getNumPages, getParam, setParam
public PNGImageDecoder(InputStream input, PNGDecodeParam param)
public RenderedImage decodeAsRenderedImage(int page) throws IOException
ImageDecoderImpl
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.decodeAsRenderedImage
in interface ImageDecoder
decodeAsRenderedImage
in class ImageDecoderImpl
page
- The page to be decoded.IOException
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.