DirectAnimation Animated Header --Bbox2Bvr Class DirectAnimation Animated Header --Bbox2Bvr Class* Microsoft DirectAnimation SDK
*Contents  *Index  *Topic Contents
*Previous Topic: ArrayBvr Class
*Next Topic: Bbox3Bvr Class

Bbox2Bvr Class


public class Bbox2Bvr extends Behavior {
    //Methods 
    public Point2Bvr getMax();
    public Point2Bvr getMin();

    public static Bbox2Bvr newUninitBvr();
}

Creates an object that represents a two-dimensional bounding box behavior. The behavior specifies the lower-left and upper-right corners of a box that encloses the non-transparent portions of an image behavior. Although a bounding box may not always be the smallest bounding box achievable for the image, it is useful for determining the extent or size of the visible portions of the image.

Applications never create bounding box behaviors explicitly. Instead, create these behaviors by calling the boundingBox method in the ImageBvr class.

For more information about behaviors, see the Behavior class.

Bbox2Bvr Methods

bullet1.gifgetMax

bullet1.gifgetMin

bullet1.gifnewUninitBvr


getMax

Bbox2Bvr Class

Creates a two-dimensional point behavior that specifies the upper-right corner of the bounding box.

public Point2Bvr getMax( );

Return Values

Returns the Point2Bvr object.


getMin

Bbox2Bvr Class

Creates a two-dimensional point behavior that specifies the lower-left corner of the bounding box.

public getMin( );

Return Values

Returns the Point2Bvr object.


newUninitBvr

Bbox2Bvr Class

Makes it possible to refer to a two-dimensional bounding box behavior before that behavior has been defined. With this method, it is possible to create the behavior and use it in the definition of other behaviors, but not actually define its contents until some later point. (This is accomplished with the init method, which is available on all behaviors.) The system generates a run-time error if you initialize a non-uninitialized behavior, initialize an uninitialized behavior that has already been initialized, or run an initialized behavior that has not yet been initialized.

public static Bbox2Bvr newUninitBvr( );

Return Values

Returns the Bbox2Bvr object.

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page