com.threerings.media.tile.util
Interface TileSetTrimmer.TrimMetricsReceiver
- Enclosing class:
- TileSetTrimmer
public static interface TileSetTrimmer.TrimMetricsReceiver
Used to communicate the metrics of the trimmed tiles back to the
caller so that they can do what they like with them.
|
Method Summary |
void |
trimmedTile(int tileIndex,
int imageX,
int imageY,
int trimX,
int trimY,
int trimWidth,
int trimHeight)
Called for each trimmed tile. |
trimmedTile
void trimmedTile(int tileIndex,
int imageX,
int imageY,
int trimX,
int trimY,
int trimWidth,
int trimHeight)
- Called for each trimmed tile.
- Parameters:
tileIndex - the index of the tile in the original tileset.imageX - the x offset into the newly created tileset image
of the trimmed image data.imageY - the y offset into the newly created tileset image
of the trimmed image data.trimX - the x offset into the untrimmed tile image where
the trimmed data begins.trimY - the y offset into the untrimmed tile image where
the trimmed data begins.trimWidth - the width of the trimmed tile image.trimHeight - the height of the trimmed tile image.