2.3.7.4 EMR_CREATEDIBPATTERNBRUSHPT Record

The EMR_CREATEDIBPATTERNBRUSHPT record defines a pattern brush for graphics operations. The pattern is specified by a DIB.

Fields not specified in this section are specified in section 2.3.7.


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

Usage

offBmi

cbBmi

offBits

cbBits

BitmapBuffer (variable)

...

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

ihBrush (4 bytes): An unsigned integer that specifies the index of the pattern brush object in the EMF object table (section 3.1.1.1). This index MUST be saved so that this object can be reused or modified.

Usage (4 bytes): An unsigned integer that specifies how to interpret values in the color table in the DIB header. This value is in the DIBColors enumeration (section 2.1.9).

offBmi (4 bytes): An unsigned integer that specifies the offset from the start of this record to the DIB header.

cbBmi (4 bytes): An unsigned integer that specifies the size of the DIB header.

offBits (4 bytes): An unsigned integer that specifies the offset from the start of this record to the DIB bits.

cbBits (4 bytes): An unsigned integer that specifies the size of the DIB bits.

BitmapBuffer (variable): A buffer containing a packed DIB in the form of a DeviceIndependentBitmap object ([MS-WMF] section 2.2.2.9). It is not required to be contiguous with the fixed portion of this record.


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

UndefinedSpace (variable, optional)

...

BmiSrc (variable)

...

BitsSrc (variable)

...

UndefinedSpace (variable, optional): An array of bytes that MUST be ignored.

BmiSrc (variable): The DIB header, which is the DibHeaderInfo field of a DeviceIndependentBitmap object.

BitsSrc (variable): The DIB bits, which is the aData field of a DeviceIndependentBitmap object.

The pattern brush object defined by this record can be selected into the playback device context by an EMR_SELECTOBJECT record (section 2.3.8.5), which specifies the pattern brush to use in subsequent graphics operations.

See section 2.3.7 for more object creation record types.