2.3.5.14 EMR_PAINTRGN Record

The EMR_PAINTRGN record paints the specified region by using the current brush. The current clipping regions used by this record are maintained in a Regions state element (section 3.1.1.2.1) in the playback device context (section 3.1).


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

Bounds

...

...

...

RgnDataSize

RgnData (variable)

...

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

Size (4 bytes): An unsigned integer that specifies the size of this record in bytes.

Bounds (16 bytes): A RectL object ([MS-WMF] section 2.2.2.19) that specifies the destination bounding rectangle in logical coordinates. If the intersection of this rectangle with the current clipping region is empty, this record has no effect.

RgnDataSize (4 bytes): An unsigned integer that specifies the size of the RgnData field data in bytes.

RgnData (variable): An array of bytes that specifies the output region in a RegionData object (section 2.2.24). The bounds specified by the RegionDataHeader field of that object MAY<69> be used as the bounding rectangle of the region when this record is processed.

See section 2.3.5 for more drawing record types.