3.2.2 EMR_CREATEBRUSHINDIRECT Example
This section provides an example of an EMR_CREATEBRUSHINDIRECT record (section 2.3.7.1).
-
000000D0: 27 00 00 00 18 00 00 00 01 00 00 00 000000E0:02 00 00 00 52 47 2A 00 03 00 00 00
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Type (0x00000027) |
|||||||||||||||||||||||||||||||
|
Size (0x00000018) |
|||||||||||||||||||||||||||||||
|
ihBrush (0x00000001) |
|||||||||||||||||||||||||||||||
|
LogBrush (0x00000002) (12 bytes) |
|||||||||||||||||||||||||||||||
|
... (0x0052472A) |
|||||||||||||||||||||||||||||||
|
... (0x00000003) |
|||||||||||||||||||||||||||||||
Type (4 bytes): 0x00000027 identifies this record type as EMR_CREATEBRUSHINDIRECT.
Size (4 bytes): 0x00000018 specifies the size of this record in bytes.
ihBrush (4 bytes): 0x00000001 specifies the index of this brush object in the EMF object table (section 3.1.1.1).
LogBrush (12 bytes): A LogBrushEx object (section 2.2.12) that contains brush data.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
BrushStyle (0x00000002) |
|||||||||||||||||||||||||||||||
|
Color (0x0052472A) |
|||||||||||||||||||||||||||||||
|
BrushHatch (0x00000003) |
|||||||||||||||||||||||||||||||
BrushStyle (4 bytes): 0x00000002 specifies a hatch brush style, from the BrushStyle enumeration ([MS-WMF] section 2.1.1.4).
Color (4 bytes): 0x0052472A is a ColorRef object ([MS-WMF] section 2.2.2.8) that specifies the brush color value.
BrushHatch (4 bytes): 0x00000003 specifies the brush hatch. Its interpretation depends on the value of BrushStyle. In this case, it specifies a 45-degree upward, left-to-right hatch pattern.