public class TLcdCADRGTile extends TLcdBufferedTile
ILcdTile
contains additional information about the
CADRG/CIB frame that it represents.fBitOffset, fBuffer, fColorModel, fDecoder, fDefaultValue, fFileName, fForcedTransparentColorIndex, fHeight, fImageIndex, fIsAllDefault, fPixelSize, fSigned, fSubTileHeight, fSubTileWidth, fType, fURL, fWidth
Constructor and Description |
---|
TLcdCADRGTile(String aFileName,
ILcdTileDecoder aDecoder,
ILcdBuffer aBuffer,
boolean aExpandColorMap,
TLcdCADRGFrameDescriptor aCADRGFrameDescriptor)
Creates a new TLcdCADRGTile.
|
TLcdCADRGTile(String aFileName,
ILcdTileDecoder aDecoder,
ILcdBuffer aBuffer,
TLcdCADRGFrameDescriptor aCADRGFrameDescriptor)
Creates a new TLcdCADRGTile.
|
Modifier and Type | Method and Description |
---|---|
Image |
createImage()
Creates an image of the entire tile, using the tile's own color model.
|
Image |
createImage(ColorModel aColorModel)
Creates an image of the entire tile, using the given color model.
|
Image |
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.
|
Image |
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.
|
TLcdCADRGFrameDescriptor |
getCADRGFrameDescriptor()
Returns the descriptor containing additional information about the
CADRG/CIB frame.
|
int |
getHeight()
Returns the height of the tile, expressed in pixels.
|
int |
getWidth()
Returns the width of the tile, expressed in pixels.
|
dispose, getBitOffset, getColorModel, getFileName, getForcedTransparentColorIndex, getImageIndex, getPixelSize, getSubTileHeight, getSubTileWidth, getTileDecoder, getType, getURL, isAllDefault, isSigned, isTraceOn, retrieveTile, retrieveValue, setClassTraceOn, setColorModel, setFileName, setForcedTransparentColorIndex, setHeight, setImageIndex, setSigned, setTraceOn, setURL, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public TLcdCADRGTile(String aFileName, ILcdTileDecoder aDecoder, ILcdBuffer aBuffer, TLcdCADRGFrameDescriptor aCADRGFrameDescriptor)
aFileName
- the name of the CADRG tile to be decoded.aDecoder
- the decoder for reading the tile.aBuffer
- the buffer in which the tile can be decoded.aCADRGFrameDescriptor
- the CADRG/CIB frame descriptor.public TLcdCADRGTile(String aFileName, ILcdTileDecoder aDecoder, ILcdBuffer aBuffer, boolean aExpandColorMap, TLcdCADRGFrameDescriptor aCADRGFrameDescriptor)
aFileName
- the name of the CADRG tile to be decoded.aDecoder
- the decoder for reading the tile.aBuffer
- the buffer in which the tile can be decoded.aExpandColorMap
- specifies whether the color maps of the
decoded tiles are expanded.aCADRGFrameDescriptor
- the CADRG frame descriptor.public TLcdCADRGFrameDescriptor getCADRGFrameDescriptor()
public Image createImage()
ILcdTile
createImage
in interface ILcdTile
createImage
in class TLcdBufferedTile
public Image createImage(ColorModel aColorModel)
ILcdTile
createImage
in interface ILcdTile
createImage
in class TLcdBufferedTile
aColorModel
- the color model to be used for the image. The color
model should be compatible with the pixel values of
the tile.public Image createImage(int aX, int aY, int aWidth, int aHeight)
ILcdTile
createImage
in interface ILcdTile
createImage
in class TLcdBufferedTile
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.public Image createImage(int aX, int aY, int aWidth, int aHeight, ColorModel aColorModel)
ILcdTile
createImage
in interface ILcdTile
createImage
in class TLcdBufferedTile
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.public int getWidth()
ILcdTile
getWidth
in interface ILcdTile
getWidth
in class TLcdBufferedTile
public int getHeight()
ILcdTile
getHeight
in interface ILcdTile
getHeight
in class TLcdBufferedTile