PrintLine PowerScript function
Description
Draws a line of a specified thickness between the specified
endpoints on the current print page.
Syntax
1 |
<span>PrintLine</span> ( <span>printjobnumber</span>, <span>x1</span>, <span>y1</span>, <span>x2</span>, <span>y2</span>, <span>thickness</span> ) |
Argument |
Description |
---|---|
printjobnumber |
The number the PrintOpen function |
x1 |
An integer specifying the x coordinate |
y1 |
An integer specifying the y coordinate |
x2 |
An integer specifying the x coordinate |
y2 |
An integer specifying the y coordinate |
thickness |
An integer specifying the thickness of |
Return Values
Integer. Returns 1 if it succeeds and
-1 if an error occurs. If any argument’s value is null, PrintLine returns null.
Usage
PrintLine does not change the position
of the print cursor, which remains where it was before the function
was called.
Examples
These statements start a new page in a print job
and then print a line starting at 0,5 and ending at 7500,5 with
a thickness of 10/1000 of an inch:
1 |
long Job |
1 |
Job = PrintOpen( ) |
1 |
... // various print commands |
1 |
// Start a new page. |
1 |
PrintPage(Job) |
1 |
// Print a line at the top of the page |
1 |
<span>PrintLine</span>(Job,0,5,7500,5,10) |
1 |
... // Other printing |
1 |
PrintClose(Job) |