D2D1_BRUSH_PROPERTIES structure (d2d1.h)

Describes the opacity and transformation of a brush.

Syntax

typedef struct D2D1_BRUSH_PROPERTIES {
  FLOAT             opacity;
  D2D1_MATRIX_3X2_F transform;
} D2D1_BRUSH_PROPERTIES;

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

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Header d2d1.h

See also

D2D1::BrushProperties

SetOpacity

SetTransform