diff --git a/src/java/com/threerings/media/tile/TrimmedTile.java b/src/java/com/threerings/media/tile/TrimmedTile.java index 28556e750..f5fbc0c63 100644 --- a/src/java/com/threerings/media/tile/TrimmedTile.java +++ b/src/java/com/threerings/media/tile/TrimmedTile.java @@ -1,5 +1,5 @@ // -// $Id: TrimmedTile.java,v 1.2 2002/06/19 08:28:25 mdb Exp $ +// $Id: TrimmedTile.java,v 1.3 2002/06/19 23:28:14 mdb Exp $ package com.threerings.media.tile; @@ -49,6 +49,16 @@ public class TrimmedTile extends Tile gfx.drawImage(_subimage, x + _tbounds.x, y + _tbounds.y, null); } + /** + * Returns the bounds of the trimmed image within the coordinate + * system defined by the complete virtual tile. The returned rectangle + * should not be modified. + */ + public Rectangle getTrimmedBounds () + { + return _tbounds; + } + // documentation inherited public Image getImage () {