2.7.13 RecolorEntryBrush

Office

Referenced by: RecolorEntryVariant

A structure that specifies a source color for a RecolorEntry that corresponds to a LogBrush Object as specified in [MS-WMF] section 2.2.2.10. The meaning of the fields corresponds to the meaning of the fields of a LogBrush Object.


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

lbStyle

lbColor

...

lbHatch

fgColor

...

bgColor

...

bitmapType

pattern

...

...

type (2 bytes): An unsigned integer that specifies the variant of the containing RecolorEntryVariant structure. It MUST be 0x0001.

lbStyle (2 bytes): An unsigned integer that specifies a brush type. It MUST be a BrushStyle Enumeration as specified in [MS-WMF] section 2.1.1.4.

lbColor (6 bytes): A WideColorStruct structure that specifies the color of the LogBrush Object. Its interpretation depends on the value of lbStyle and is specified in [MS-WMF] section 2.2.2.10.

lbHatch (2 bytes): An unsigned integer that specifies a brush hatch type. Its interpretation depends on the value of lbStyle and is specified in [MS-WMF] section 2.1.1.12.

fgColor (6 bytes): A WideColorStruct structure that specifies a foreground color. Only used for metafile records of type META_DIBCREATEPATTERNBRUSH, specified in [MS-WMF] section 2.3.4.8. This field represents the color of the first entry of the DIB color table, specified in [MS-WMF] section 2.2.2.3. Undefined and MUST be ignored if lbStyle is not equal to 0x0003.

bgColor (6 bytes): A WideColorStruct structure that specifies a background color. Only used for metafile records of type META_DIBCREATEPATTERNBRUSH, as specified in [MS-WMF] section 2.3.4.8. This field represents the color of the second entry of the DIB color table, as specified in [MS-WMF] section 2.2.2.3. Undefined and MUST be ignored if lbStyle is not equal to 0x0003.

bitmapType (2 bytes): An unsigned integer that specifies the type of the bitmap if lbStyle is equal to 0x0003. It MUST also be a value from the following table.

Value

Meaning

0x0000

Color mapping is used for META_CREATEPATTERNBRUSH records with a monochrome pattern bitmap.

0x0001

Color mapping is used for META_DIBCREATEPATTERNBRUSH records.

0x0003

Color mapping is used for META_CREATEBRUSHINDIRECT records and

META_CREATEPATTERNBRUSH records with a non-monochrome pattern bitmap.

MUST be ignored if lbStyle is not equal to 0x0003.

pattern (8 bytes): An array of bytes that specifies the bit pattern for a monochrome 8x8 pixel brush. Undefined and MUST be ignored if lbStyle is not equal to 0x0003 or if bitmapType is equal to 0x0003. If bitmapType is equal to 0x0000 it specifies the Bits field for a META_CREATEPATTERNBRUSH record as specified in [MS-WMF] section 2.3.4.4. If bitmapType is equal to 0x0001 it specifies the Bits field of a DeviceIndependentBitmap (DIB) Object ([MS-WMF] section 2.2.2.3) for a META_DIBCREATEPATTERNBRUSH record as specified in [MS-WMF] sections 2.3.4.8.

Show: