com.threerings.cast
Interface TrimmedMultiFrameImage

All Superinterfaces:
MultiFrameImage
All Known Implementing Classes:
CompositedMaskedImage, CompositedMultiFrameImage, CompositedShadowImage

public interface TrimmedMultiFrameImage
extends MultiFrameImage

Used to generate more memory efficient composited images in circumstances where we have trimmed underlying component images.


Method Summary
 void getTrimmedBounds(int index, Rectangle bounds)
          Fills in the minimum bounding rectangle for this image that contains all non-transparent pixels.
 
Methods inherited from interface com.threerings.media.util.MultiFrameImage
getFrameCount, getHeight, getWidth, hitTest, paintFrame
 

Method Detail

getTrimmedBounds

void getTrimmedBounds(int index,
                      Rectangle bounds)
Fills in the minimum bounding rectangle for this image that contains all non-transparent pixels. If this information is unavailable, the bounds of the entire image may be returned in exchange for improved performance.