ImageDecoderImpl
, PNGImageDecoder
, TIFFImageDecoder
public 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
IOException
Raster decodeAsRaster() throws IOException
IOException
Raster decodeAsRaster(int page) throws IOException
page
- The page to be decoded.IOException
RenderedImage decodeAsRenderedImage() throws IOException
IOException
RenderedImage decodeAsRenderedImage(int page) throws IOException
page
- The page to be decoded.IOException
Copyright © 2018 Apache Software Foundation. All rights reserved.