Set Line Style

\i C L byte::style

or

\i A L S byte::style

Parameter Type Range Description
style byte 0x01 ... 0xFF style of the line

This command allows a definition for a line style used by Draw Line and Draw Rectangle. The parameter style represents a bit mask where a 1 represents a pixel to be written and a 0 a pixel to be omitted. The following table shows some examples for line styles:

Hex Binary Description
FF 1111 1111 solid line
55 1010 1010 dotted line
F0 1111 0000 dashed line (4 pixel black, 4 pixel white)
33 0011 0011 dashed line (2 pixel black, 2 pixel white)
27 0010 0111 dash-dotted line

Note

Response: [ACK]

Example

\iCL\x33
\iALS\x33

These two commands are equivaltent and will set the line style to a dashed line with 2 pixels black and 2 pixels white.

See also:

Set Line Thickness
Set Line Ending Mode
Set Line Caps Style
Draw Line
Draw Rectangle