PrintLine
PowerScript function
Description
Draws a line of a specified thickness between the specified
endpoints on the current print page.
Syntax
|
1 |
PrintLine ( printjobnumber, x1, y1, x2, y2, thickness ) |
|
Argument |
Description |
|---|---|
|
printjobnumber |
The number the PrintOpen function assigned to the print |
|
x1 |
An integer specifying the x coordinate in thousandths of |
|
y1 |
An integer specifying the y coordinate in thousandths of |
|
x2 |
An integer specifying the x coordinate in thousandths of |
|
y2 |
An integer specifying the y coordinate in thousandths of |
|
thickness |
An integer specifying the thickness of the line in |
Return value
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 2 3 4 5 6 7 8 9 |
long Job Job = PrintOpen( ) ... // various print commands // Start a new page. PrintPage(Job) // Print a line at the top of the page PrintLine(Job,0,5,7500,5,10) ... // Other printing PrintClose(Job) |
See also