2.1.2.1 BrushData Flags

The BrushData flags specify properties of graphics brushes, including the presence of optional data fields. These flags can be combined to specify multiple options.

Constant/value

Description

BrushDataPath

0x00000001

This flag is meaningful in EmfPlusPathGradientBrushData objects.

If set, an EmfPlusBoundaryPathData object is specified in the BoundaryData field of the brush data object.

If clear, an EmfPlusBoundaryPointData object is specified in the BoundaryData field of the brush data object.

BrushDataTransform

0x00000002

This flag is meaningful in EmfPlusLinearGradientBrushData objects, EmfPlusPathGradientBrushData objects, and EmfPlusTextureBrushData objects.

If set, a 2x3 world space to device space transform matrix is specified in the OptionalData field of the brush data object.

BrushDataPresetColors

0x00000004

This flag is meaningful in EmfPlusLinearGradientBrushData and EmfPlusPathGradientBrushData objects.

If set, an EmfPlusBlendColors object is specified in the OptionalData field of the brush data object.

BrushDataBlendFactorsH

0x00000008

This flag is meaningful in EmfPlusLinearGradientBrushData and EmfPlusPathGradientBrushData objects.

If set, an EmfPlusBlendFactors object that specifies a blend pattern along a horizontal gradient is specified in the OptionalData field of the brush data object.

BrushDataBlendFactorsV

0x00000010

This flag is meaningful in EmfPlusLinearGradientBrushData objects.

If set, an EmfPlusBlendFactors object that specifies a blend pattern along a vertical gradient is specified in the OptionalData field of the brush data object.<7>

BrushDataFocusScales

0x00000040

This flag is meaningful in EmfPlusPathGradientBrushData objects.

If set, an EmfPlusFocusScaleData object is specified in the OptionalData field of the brush data object.

BrushDataIsGammaCorrected

0x00000080

This flag is meaningful in EmfPlusLinearGradientBrushData, EmfPlusPathGradientBrushData, and EmfPlusTextureBrushData objects.

If set, the brush MUST already be gamma corrected; that is, output brightness and intensity have been corrected to match the input image.

BrushDataDoNotTransform

0x00000100

This flag is meaningful in EmfPlusTextureBrushData objects.

If set, a world space to device space transform SHOULD NOT be applied to the texture brush.

Graphics brushes are specified by EmfPlusBrush objects.

See section 2.1.2 for the specification of additional bit flags.