Package com.luciad.format.raster
Class TLcdClippedTile
java.lang.Object
com.luciad.format.raster.TLcdClippedTile
- All Implemented Interfaces:
ILcdTile,ILcdDisposable,AutoCloseable
This
ILcdTile represents a specified rectangle of a given tile
as a new tile.- Since:
- 9.1
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdClippedTile(ILcdTile aTile, int aX, int aY, int aWidth, int aHeight) Creates a new TLcdClippedTile. -
Method Summary
Modifier and TypeMethodDescriptionCreates an image of the entire tile, using the tile's own color model.createImage(int aX, int aY, int aWidth, int aHeight) Creates an image of the specified rectangular area of the tile, using the tile's own color model.createImage(int aX, int aY, int aWidth, int aHeight, ColorModel aColorModel) Creates an image of the specified rectangular area of the tile, using the given color model.createImage(ColorModel aColorModel) Creates an image of the entire tile, using the given color model.voiddispose()Disposes of this object and allows it to release any system resources that it is holding.Returns the optional color model of the tile.intReturns the height of the tile, expressed in pixels.intReturns the pixel size of the tile values, expressed in bits.getTile()intgetType()Returns the internal storage type of the tile values.intgetWidth()Returns the width of the tile, expressed in pixels.booleanReturns whether all values in the tile are equal to a default value.intretrieveValue(int aX, int aY) Retrieves the tile value at the specified location.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.util.ILcdDisposable
close
-
Constructor Details
-
TLcdClippedTile
Creates a new TLcdClippedTile.- Parameters:
aTile- the tile from which the contents will be retrieved.aX- the x ordinate of the clipped tile in the original tile, expressed in pixels.aY- the y ordinate of the clipped tile in the original tile, expressed in pixels.aWidth- the width of the clipped tile, expressed in pixels.aHeight- the height of the clipped tile, expressed in pixels.
-
-
Method Details
-
getTile
-
getWidth
public int getWidth()Description copied from interface:ILcdTileReturns the width of the tile, expressed in pixels. -
getHeight
public int getHeight()Description copied from interface:ILcdTileReturns the height of the tile, expressed in pixels. -
getType
public int getType()Description copied from interface:ILcdTileReturns the internal storage type of the tile values. -
getPixelSize
public int getPixelSize()Description copied from interface:ILcdTileReturns the pixel size of the tile values, expressed in bits.- Specified by:
getPixelSizein interfaceILcdTile
-
getColorModel
Description copied from interface:ILcdTileReturns the optional color model of the tile.- Specified by:
getColorModelin interfaceILcdTile- Returns:
- the color model, or
nullif the raster doesn't have an explicit color model.
-
isAllDefault
public boolean isAllDefault()Description copied from interface:ILcdTileReturns whether all values in the tile are equal to a default value.- Specified by:
isAllDefaultin interfaceILcdTile
-
retrieveValue
public int retrieveValue(int aX, int aY) Description copied from interface:ILcdTileRetrieves the tile value at the specified location.- Specified by:
retrieveValuein interfaceILcdTile- Parameters:
aX- the x ordinate of the value, expressed in tile coordinates.aY- the y ordinate of the value, expressed in tile coordinates.- Returns:
- the integer tile value at the specified location.
-
createImage
Description copied from interface:ILcdTileCreates an image of the entire tile, using the tile's own color model.- Specified by:
createImagein interfaceILcdTile
-
createImage
Description copied from interface:ILcdTileCreates an image of the entire tile, using the given color model.- Specified by:
createImagein interfaceILcdTile- Parameters:
aColorModel- the color model to be used for the image. The color model should be compatible with the pixel values of the tile.
-
createImage
Description copied from interface:ILcdTileCreates an image of the specified rectangular area of the tile, using the tile's own color model.- Specified by:
createImagein interfaceILcdTile- Parameters:
aX- the x ordinate of the area, expressed in tile coordinates.aY- the y ordinate of the area, expressed in tile coordinates.aWidth- the width of the area, expressed in tile coordinates.aHeight- the height of the area, expressed in tile coordinates.
-
createImage
Description copied from interface:ILcdTileCreates an image of the specified rectangular area of the tile, using the given color model.- Specified by:
createImagein interfaceILcdTile- Parameters:
aX- the x ordinate of the area, expressed in tile coordinates.aY- the y ordinate of the area, expressed in tile coordinates.aWidth- the width of the area, expressed in tile coordinates.aHeight- the height of the area, expressed in tile coordinates.aColorModel- the color model to be used for the image. The color model should be compatible with the pixel values of the tile.
-
dispose
public void dispose()Description copied from interface:ILcdDisposableDisposes of this object and allows it to release any system resources that it is holding.
The result of calling any other method (other than
finalize) on this object subsequent to a call to this method is undefined.- Specified by:
disposein interfaceILcdDisposable
-