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>]<IX1>,<IY1><ws><IX2>,<IY2> | Absolute coordinates. |
Single-byte, binary operand | [l] (6C) | <LX1><LY1><LX2><LY2> | Relative coordinates |
[Ctrl-L] (0c | <SX1><SY1><SX2><SY2> | Relative coordinates | |
(8c) | <BCount>[<SX1><SY1><SX2><SY2>]+ | 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