public class TLcdECWImageDecoder extends Object implements ILcdTileDecoder
ILcdTileDecoder
for ECW images.
When reading a tile, the image index specifies the downscaling factor to be applied to the original image size. E.g. with a factor of 2, the image behaves as if it is twice as small compared to its actual width and height.
This class is part of the Advanced Raster Connectors component.
Constructor and Description |
---|
TLcdECWImageDecoder()
Creates a new
TLcdECWImageDecoder . |
Modifier and Type | Method and Description |
---|---|
ILcdTileInfo |
readTile(String aFileName,
int aImageIndex,
int aSubTileWidth,
int aSubTileHeight,
int aSubTileRowIndex,
int aSubTileColumnIndex,
ILcdBuffer aBuffer)
Reads a sub-tile from a file.
|
ILcdTileInfo |
readTile(URL aURL,
int aScaleFactor,
int aSubTileWidth,
int aSubTileHeight,
int aSubTileRowIndex,
int aSubTileColumnIndex,
ILcdBuffer aBuffer)
Reads a sub-tile from a URL.
|
public TLcdECWImageDecoder()
TLcdECWImageDecoder
.public ILcdTileInfo readTile(URL aURL, int aScaleFactor, int aSubTileWidth, int aSubTileHeight, int aSubTileRowIndex, int aSubTileColumnIndex, ILcdBuffer aBuffer) throws TLcdCodecException
ILcdTileDecoder
readTile
in interface ILcdTileDecoder
aURL
- the URL containing the tile.aScaleFactor
- the index of the tile in the given URL (if applicable).aSubTileWidth
- the width of the sub-tiles, expressed in pixels.aSubTileHeight
- the height of the sub-tiles, expressed in pixels.aSubTileRowIndex
- the row number of the sub-tile to be decoded.aSubTileColumnIndex
- the column number of the sub-tile to be decoded.aBuffer
- the buffer in which the decoded bytes will be stored.ILcdTileInfo
information about the decoded tile.TLcdCodecException
- in case of decoding problems.public ILcdTileInfo readTile(String aFileName, int aImageIndex, int aSubTileWidth, int aSubTileHeight, int aSubTileRowIndex, int aSubTileColumnIndex, ILcdBuffer aBuffer) throws TLcdCodecException
ILcdTileDecoder
readTile
in interface ILcdTileDecoder
aFileName
- the name of the file containing the tile.aImageIndex
- the index of the tile in the given file (if applicable).aSubTileWidth
- the width of the sub-tiles, expressed in pixels.aSubTileHeight
- the height of the sub-tiles, expressed in pixels.aSubTileRowIndex
- the row number of the sub-tile to be decoded.aSubTileColumnIndex
- the column number of the sub-tile to be decoded.aBuffer
- the buffer in which the decoded bytes will be stored.ILcdTileInfo
information about the decoded tile.TLcdCodecException
- in case of decoding problems.