ImageDecoderImpl, PNGImageDecoder, TIFFImageDecoderpublic interface ImageDecoder
| Modifier and Type | Method | Description |
|---|---|---|
Raster |
decodeAsRaster() |
Returns a Raster that contains the decoded contents of the
SeekableStream associated with this ImageDecoder.
|
Raster |
decodeAsRaster(int page) |
Returns a Raster that contains the decoded contents of the
SeekableStream associated with this ImageDecoder.
|
RenderedImage |
decodeAsRenderedImage() |
Returns a RenderedImage that contains the decoded contents of the
SeekableStream associated with this ImageDecoder.
|
RenderedImage |
decodeAsRenderedImage(int page) |
Returns a RenderedImage that contains the decoded contents of the
SeekableStream associated with this ImageDecoder.
|
SeekableStream |
getInputStream() |
Returns the SeekableStream associated with this ImageDecoder.
|
int |
getNumPages() |
Returns the number of pages present in the current stream.
|
ImageDecodeParam |
getParam() |
Returns the current parameters as an instance of the
ImageDecodeParam interface.
|
void |
setParam(ImageDecodeParam param) |
Sets the current parameters to an instance of the
ImageDecodeParam interface.
|
ImageDecodeParam getParam()
void setParam(ImageDecodeParam param)
SeekableStream getInputStream()
int getNumPages()
throws IOException
IOExceptionRaster decodeAsRaster() throws IOException
IOExceptionRaster decodeAsRaster(int page) throws IOException
page - The page to be decoded.IOExceptionRenderedImage decodeAsRenderedImage() throws IOException
IOExceptionRenderedImage decodeAsRenderedImage(int page) throws IOException
page - The page to be decoded.IOExceptionCopyright © 2018 Apache Software Foundation. All rights reserved.