2.3.7.1 EMR_CREATEBRUSHINDIRECT Record

The EMR_CREATEBRUSHINDIRECT record defines a logical brush for graphics operations.


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

Type

Size

ihBrush

LogBrush

...

...

Type (4 bytes): An unsigned integer that identifies this record type as EMR_CREATEBRUSHINDIRECT. This value is 0x00000027.

Size (4 bytes): An unsigned integer that specifies the size in bytes, of this record. This value is 0x00000018.

ihBrush (4 bytes): An unsigned integer that specifies the index of the logical brush object in the EMF object table (section 3.1.1.1). This index is used to refer to the object, so it can be reused or modified.

LogBrush (12 bytes): A LogBrushEx object (section 2.2.12) that specifies the style, color, and pattern of the logical brush. The BrushStyle field in this object MUST be BS_SOLID, BS_HATCHED, or BS_NULL.

See section 2.3.7 for more object creation record types.