2.2.2.2.1.1.2.4 MultiPatBlt (MULTI_PATBLT_ORDER)

The MultiPatBlt Primary Drawing Order is used to paint multiple rectangles by using a specified brush and three-way raster operation.

 Encoding order number: 16 (0x10)
 Negotiation order number: 16 (0x10)
 Number of fields: 14
 Number of field encoding bytes: 2
 Maximum encoded field length: 412 bytes


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

nLeftRect (variable)

nTopRect (variable)

nWidth (variable)

nHeight (variable)

bRop (optional)

BackColor (optional)

ForeColor (optional)

BrushOrgX (optional)

BrushOrgY (optional)

BrushStyle (optional)

BrushHatch (optional)

BrushExtra (optional)

...

...

nDeltaEntries (optional)

CodedDeltaList (variable)

...

nLeftRect (variable): The left coordinate of the destination rectangle specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

nTopRect (variable): The top coordinate of the destination rectangle specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

nWidth (variable): The width of the destination rectangle specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

nHeight (variable): The height of the destination rectangle specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

bRop (1 byte): The index of the ternary raster operation to perform (see section 2.2.2.2.1.1.1.7).

BackColor (3 bytes): The background color described by using a Generic Color (section 2.2.2.2.1.1.1.8) structure.

ForeColor (3 bytes): The foreground color described by using a Generic Color (section 2.2.2.2.1.1.1.8) structure.

BrushOrgX (1 byte): An 8-bit, signed integer. The x-coordinate of the point where the top leftmost pixel of a brush pattern MUST be anchored.

BrushOrgY (1 byte): An 8-bit, signed integer. The y-coordinate of the point where the top leftmost pixel of a brush pattern MUST be anchored.

BrushStyle (1 byte): An 8-bit, unsigned integer. The contents and format of this field are the same as the BrushStyle field of the PatBlt (section 2.2.2.2.1.1.2.3) Primary Drawing Order.

BrushHatch (1 byte): An 8-bit, unsigned integer. The contents and format of this field are the same as the BrushHatch field of the PatBlt (section 2.2.2.2.1.1.2.3) Primary Drawing Order.

BrushExtra (7 bytes): The contents and format of this field are the same as the BrushExtra field of the PatBlt (section 2.2.2.2.1.1.2.3) Primary Drawing Order.

nDeltaEntries (1 byte): An 8-bit, unsigned integer. The number of bounding rectangles described by the CodedDeltaList field.

CodedDeltaList (variable): A Two-Byte Header Variable Field (section 2.2.2.2.1.1.1.3) structure that encapsulates a Delta-Encoded Rectangles (section 2.2.2.2.1.1.1.5) structure that contains bounding rectangles to use when rendering the order. The number of rectangles described by the Delta-Encoded Rectangles structure is specified by the nDeltaEntries field.