Compartilhar via


2.2.2.2.1.1.2.5 OpaqueRect (OPAQUERECT_ORDER)

The OpaqueRect Primary Drawing Order is used to paint a rectangle by using an opaque brush.

 Encoding order number: 10 (0x0A)
 Negotiation order number: 1 (0x01)
 Number of fields: 7
 Number of field encoding bytes: 1
 Maximum encoded field length: 11 bytes

Note that the negotiation order number for the OpaqueRect Primary Drawing Order (0x01) is the same as that for the PatBlt Primary Drawing Order (section 2.2.2.2.1.1.2.3). Hence support for OpaqueRect implies support for PatBlt. The converse is also true.


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)

RedOrPaletteIndex (optional)

Green (optional)

Blue (optional)

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).

RedOrPaletteIndex (1 byte): An 8-bit, unsigned integer. Used as a palette index for 16-color and 256-color palettized color schemes. If the RGB color scheme is in effect, this field holds the red RGB component.

Green (1 byte): An 8-bit, unsigned integer. The green RGB color component.

Blue (1 byte): An 8-bit, unsigned integer. The blue RGB color component.