2.2.2.2.1.1.2.11 LineTo (LINETO_ORDER)

The LineTo Primary Drawing Order encodes a single line drawing order that is restricted to solid color lines, one pixel wide.

 Encoding order number: 9 (0x09)
 Negotiation order number: 8 (0x08)
 Number of fields: 10
 Number of field encoding bytes: 2
 Maximum encoded field length: 19 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

BackMode (optional)

nXStart (variable)

nYStart (variable)

nXEnd (variable)

nYEnd (variable)

BackColor (optional)

...

bRop2 (optional)

PenStyle (optional)

PenWidth (optional)

PenColor (optional)

BackMode (2 bytes): An unsigned, 16-bit integer. This field contains the background mix mode and MUST be one of the following values.

Value

Meaning

TRANSPARENT

0x0001

Background remains untouched.

OPAQUE

0x0002

Background is filled with the current background color before the pen is drawn.

nXStart (variable): The x-coordinate of the starting point of the line specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

nYStart (variable): The y-coordinate of the starting point of the line specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

nXEnd (variable): The x-coordinate of the ending point of the line specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

nYEnd (variable): The y-coordinate of the ending point of the line specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

BackColor (3 bytes): The background color described by using a Generic Color (section 2.2.2.2.1.1.1.8) structure. This field MUST be zeroed out.

bRop2 (1 byte): The binary raster operation to perform (see section 2.2.2.2.1.1.1.6).

PenStyle (1 byte): An 8-bit, unsigned integer. The drawing style of the pen. This field MUST be set to PS_SOLID (0x00).

PenWidth (1 byte): An 8-bit, unsigned integer. The width of the pen. This field MUST be set to 0x01.

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