public interface ImageDecoder
Modifier and Type | Method and Description |
---|---|
java.awt.image.Raster |
decodeAsRaster()
Returns a Raster that contains the decoded contents of the
SeekableStream associated with this ImageDecoder.
|
java.awt.image.Raster |
decodeAsRaster(int page)
Returns a Raster that contains the decoded contents of the
SeekableStream associated with this ImageDecoder.
|
java.awt.image.RenderedImage |
decodeAsRenderedImage()
Returns a RenderedImage that contains the decoded contents of the
SeekableStream associated with this ImageDecoder.
|
java.awt.image.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 java.io.IOException
java.io.IOException
java.awt.image.Raster decodeAsRaster() throws java.io.IOException
java.io.IOException
java.awt.image.Raster decodeAsRaster(int page) throws java.io.IOException
page
- The page to be decoded.java.io.IOException
java.awt.image.RenderedImage decodeAsRenderedImage() throws java.io.IOException
java.io.IOException
java.awt.image.RenderedImage decodeAsRenderedImage(int page) throws java.io.IOException
page
- The page to be decoded.java.io.IOException
Copyright © 2022 Apache Software Foundation. All Rights Reserved.