IMVMask

The IMVMask interface contains methods and properties to configure the MV Mask DirectShow filter.

.

Methods:

Angle Angle of the object to be drawn.
Filled Specifies whether the object is to be filled.
Height Height of the object to be drawn.
Thickness Line thickness for drawing.
Type Type of object to be drawn.
WhiteMask Use a white mask instead of a black one.
Width Width of the object to be drawn.
xCenter Horizontal center of the object to be drawn.
yCenter Vertical center of the object to be drawn.

 

Header file: IMVMask.h
Interface definition language file: IMVMask.idl
Typelib: MVMask
Interface ID: IID_IMVMask


Property IMVMask::Angle

Declaration: Property Get/Put Angle As Long

Angle of the object to be drawn.

C Prototype:

HRESULT put_Angle(LONG newVal);
HRESULT get_Angle(LONG *pVal);


Property IMVMask::Filled

Declaration: Property Get/Put Filled As Boolean

Specifies whether the object is to be filled.

C Prototype:

HRESULT put_Filled(VARIANT_BOOL newVal);
HRESULT get_Filled(VARIANT_BOOL *pVal);


Property IMVMask::Height

Declaration: Property Get/Put Height As Long

Height of the object to be drawn.

C Prototype:

HRESULT put_Height(LONG newVal);
HRESULT get_Height(LONG *pVal);


Property IMVMask::Thickness

Declaration: Property Get/Put Thickness As Long

Line thickness for drawing.

C Prototype:

HRESULT put_Thickness(LONG newVal);
HRESULT get_Thickness(LONG *pVal);


Property IMVMask::Type

Declaration: Property Get/Put Type As Long

Type of object to be drawn.

Type

Value

Description
MV_DRAW_ELLIPSE

0

Use an ellipse as mask.
MV_DRAW_RECTANGLE

1

Use an rectangle as mask.
C Prototype:

HRESULT put_Type(LONG newVal);
HRESULT get_Type(LONG *pVal);


Property IMVMask::WhiteMask

Declaration: Property Get/Put WhiteMask As Boolean

Use a white mask instead of a black one.

C Prototype:

HRESULT put_WhiteMask(VARIANT_BOOL newVal);
HRESULT get_WhiteMask(VARIANT_BOOL *pVal);


Property IMVMask::Width

Declaration: Property Get/Put Width As Long

Width of the object to be drawn.

C Prototype:

HRESULT put_Width(LONG newVal);
HRESULT get_Width(LONG *pVal);


Property IMVMask::xCenter

Declaration: Property Get/Put xCenter As Long

Horizontal center of the object to be drawn.

C Prototype:

HRESULT put_xCenter(LONG newVal);
HRESULT get_xCenter(LONG *pVal);


Property IMVMask::yCenter

Declaration: Property Get/Put yCenter As Long

Vertical center of the object to be drawn.

C Prototype:

HRESULT put_yCenter(LONG newVal);
HRESULT get_yCenter(LONG *pVal);