Draw Line
Purpose
The Draw Line function draws a simple line segment between two points.
Syntax
Opcode format | Opcode
[ASCII] (Hex) |
Operand Format | Comments |
Single-byte, readable operand | [L] (4C) | [<ws>]<I_{X1}>,<I_{Y1}><ws><I_{X2}>,<I_{Y2}> | Absolute coordinates. |
Single-byte, binary operand | [l] (6C) | <L_{X1}><L_{Y1}><L_{X2}><L_{Y2}> | Relative coordinates |
[Ctrl-L] (0c | <S_{X1}><S_{Y1}><S_{X2}><S_{Y2}> | Relative coordinates | |
(8c) | <B_{Count}>[<S_{X1}><S_{Y1}><S_{X2}><S_{Y2}>]^{+} | Multiline, relative coordinates |
X1, Y1 Logical point the line segment is drawn from
X2, Y2 Logical point the line segment is drawn to
Count Number of line segments that follow; count must be at least 1 and less than 256.
Details
The Draw Line Function is the basic opcode for drawing a line segment. The line is rendered using the current "Line Weight", "Line Cap", "Line Pattern", and "Visibility" attributes.
Notes
This function is generally only used when the line segments are not connected to each other. To draw a series of connected line segments, the Polyline function should be used.
Implementation in WHIP! Versions
Toolkit Function |
TBD |
Partial |
Full |
Revised in |
Draw Line |
- |
0.2x, 0.5x, 1.x |
1.03 |
- |
See Also