| |
|
| org.geotools.image.io.text.TextImageReader org.geotools.image.io.text.TextMatrixImageReader
TextMatrixImageReader | public class TextMatrixImageReader extends TextImageReader (Code) | | An image decoder for matrix of floating-point numbers. The default implementation creates
rasters of
DataBuffer.TYPE_FLOAT . An easy way to change this type is to overwrite
the
TextMatrixImageReader.getRawDataType method.
since: 2.4 version: $Id: TextMatrixImageReader.java 27629 2007-10-26 09:59:20Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
public void | close() Closes the input stream and disposes the resources that was specific to that stream. | public int | getHeight(int imageIndex) Returns the height in pixels of the given image within the input source.
Calling this method may force loading of full image.
Parameters: imageIndex - the index of the image to be queried. | public IIOMetadata | getImageMetadata(int imageIndex) Returns metadata associated with the given image.
Calling this method may force loading of full image.
Parameters: imageIndex - The image index. | public int | getWidth(int imageIndex) Returns the width in pixels of the given image within the input source.
Parameters: imageIndex - the index of the image to be queried. | public BufferedImage | read(int imageIndex, ImageReadParam param) Reads the image indexed by
imageIndex .
Parameters: imageIndex - The index of the image to be retrieved. Parameters: param - Parameters used to control the reading process, or null. |
TextMatrixImageReader | protected TextMatrixImageReader(ImageReaderSpi provider)(Code) | | Constructs a new image reader.
Parameters: provider - the provider that is invoking this constructor, or null if none. |
close | public void close() throws IOException(Code) | | Closes the input stream and disposes the resources that was specific to that stream.
|
getHeight | public int getHeight(int imageIndex) throws IOException(Code) | | Returns the height in pixels of the given image within the input source.
Calling this method may force loading of full image.
Parameters: imageIndex - the index of the image to be queried. Image height. throws: IOException - If an error occurs reading the height informationfrom the input source. |
getImageMetadata | public IIOMetadata getImageMetadata(int imageIndex) throws IOException(Code) | | Returns metadata associated with the given image.
Calling this method may force loading of full image.
Parameters: imageIndex - The image index. The metadata, or null if none. throws: IOException - If an error occurs reading the data information from the input source. |
getWidth | public int getWidth(int imageIndex) throws IOException(Code) | | Returns the width in pixels of the given image within the input source.
Parameters: imageIndex - the index of the image to be queried. Image width. throws: IOException - If an error occurs reading the width informationfrom the input source. |
read | public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException(Code) | | Reads the image indexed by
imageIndex .
Parameters: imageIndex - The index of the image to be retrieved. Parameters: param - Parameters used to control the reading process, or null. The desired portion of the image. throws: IOException - if an input operation failed. |
|
|
|