DrawLine
Not supported from DLL version 196116 onwards.
DrawLine
Stack | Position | Description |
---|---|---|
Stack(In) | Top | ] |
Top 1 | Parameter n | |
. . . | . . . | |
Top-n | Parameter 1 | |
Top n-1 | [ | |
Stack(Out) | - |
The following parameters can be transferred:
Parameters | Description | Default |
---|---|---|
document | a document created with Document | mandatory |
x1 | x-coordinate of the first point | Current position |
y1 | y-coordinate of the first point | Current position |
x2 | x-coordinate of the second point | Right margin |
y2 | y-coordinate of the second point | Current y-coordinate |
COLOR col | Colour | col = BLACK |
WIDTH w | Line width in pixels | w = 1 |
A line in the COLOR colour is drawn from point (x1, y1) to point (x2, y2). If the second point is missing, a horizontal line is drawn to the right edge. If the first point is missing, a line is drawn from the current position to the second point or to the right edge.
All coordinates can be given as simple values or as values. A simple value is interpreted as row/column coordinate depending on the current CPI/LPI setting. In either case, the point (0,0) is the value specified by SetParameter/ORIGIN or, in the absence of such a specification, the upper left corner of the current page.