|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface describing objects that transform an InputStream into a BufferedImage or Raster.
This interface is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
Method Summary | |
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. |
Method Detail |
public ImageDecodeParam getParam()
public void setParam(ImageDecodeParam param)
public SeekableStream getInputStream()
public int getNumPages() throws IOException
IOException
public Raster decodeAsRaster() throws IOException
IOException
public Raster decodeAsRaster(int page) throws IOException
page
- The page to be decoded.
IOException
public RenderedImage decodeAsRenderedImage() throws IOException
IOException
public RenderedImage decodeAsRenderedImage(int page) throws IOException
page
- The page to be decoded.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |