    Contents  Index  Topic Contents
    Previous Topic: LineStyleBvr Class
    Next Topic: MicrophoneBvr Class

> ## MatteBvr Class

>     public class MatteBvr extends Behavior {

>         // Methods
>         public MatteBvr transform(Transform2Bvr xf);

>         public static MatteBvr newUninitBvr();
>     }

> Creates an object representing a matte behavior. A matte consists of a path and/or text, and is typically used to clip an image to the shape defined by the path and/or text.

> For more information about behaviors, see the Behavior class.

> - MatteBvr Methods
> - Relevant Methods from the Statics Class
> - Relevant Fields from the Statics Class

> ### MatteBvr Methods

> transform

> newUninitBvr

> ####

> transform

> MatteBvr Class

> Creates a new matte behavior that is the result of applying the given transformation behavior to the original matte. The transformation affects each point behavior in the path that defines the matte.

> public MatteBvr transform(
> Transform2Bvr xf
> );

> ##### Parameters

> xf
>   The Transform2Bvr object.

> ##### Return Values

> Returns the MatteBvr object.

> ##### Remarks

> This attribute composes values.

> ####

> newUninitBvr

> MatteBvr Class

> This method allows you to refer to an MatteBvr behavior before that behavior has been defined. With this method you can 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 MatteBvr newUninitBvr( );

> ##### Return Values

> Returns the MatteBvr object.

> ### Relevant Methods from the Statics Class

> The following methods are defined in the Statics class and are most relevant to objects of type MatteBvr.

> public static MatteBvr difference(MatteBvr m1, MatteBvr m2);

> public static MatteBvr fillMatte(Path2Bvr path);

> public static MatteBvr intersect(MatteBvr m1, MatteBvr m2);

> public static MatteBvr textMatte(StringBvr text, FontStyleBvr fs);

> public static MatteBvr union(MatteBvr m1, MatteBvr m2);

> ### Relevant Fields from the Statics Class

> The following fields are defined in the Statics class and are most relevant to objects of type MatteBvr.

> public final static MatteBvr clearMatte;

> public final static MatteBvr opaqueMatte;

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

> Top of Page