D2D1_BRUSH_PROPERTIES structure
Describes the opacity and transformation of a brush.
Syntax
struct D2D1_BRUSH_PROPERTIES {
FLOAT opacity;
D2D1_MATRIX_3X2_F transform;
};
Members
- opacity
-
Type: FLOAT
-
A value between 0.0f and 1.0f, inclusive, that specifies the degree of opacity of the brush.
- transform
-
Type: D2D1_MATRIX_3X2_F
-
The transformation that is applied to the brush.
Remarks
This structure is used when creating a brush. For convenience, Direct2D provides the D2D1::BrushProperties function for creating D2D1_BRUSH_PROPERTIES structures.
After creating a brush, you can change its opacity or transform by calling the SetOpacity or SetTransform methods.
Requirements
|
Minimum supported client |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
See also