次の方法で共有


2.2.12 LogBrushEx Object

The LogBrushEx object defines the style, color, and pattern of a device-independent brush.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

BrushStyle

Color

BrushHatch

BrushStyle (4 bytes): An unsigned integer that specifies the brush style. The value MUST be an enumeration from BrushStyle enumeration ([MS-WMF] section 2.1.1.4). The style values that are supported in this structure are listed later in this section. The BS_NULL style SHOULD be used to specify a brush that has no effect.

Color (4 bytes): A 32-bit ColorRef object ([MS-WMF] section 2.2.2.8) that specifies a color. The interpretation of this field depends on the value of BrushStyle, as explained in the following table.

BrushHatch (4 bytes): A 32-bit unsigned field that contains the brush hatch data. Its interpretation depends on the value of BrushStyle, as explained in the following table.

The following table shows the relationship between the BrushStyle, Color, and BrushHatch fields in a LogBrushEx object. Only supported brush styles are listed.

BrushStyle

Color

BrushHatch

BS_SOLID

A ColorRef object, which specifies the color of the brush.

Not used and SHOULD be ignored.

BS_NULL

Not used and SHOULD be ignored.

Not used and SHOULD be ignored.

BS_HATCHED

A ColorRef object, which specifies the foreground color of the hatch pattern.

A value from the HatchStyle enumeration (section 2.1.17), which specifies the orientation of lines used to create the hatch.