Description
Draws a line of a specified thickness between the specified endpoints on the current print page.
Syntax
PrintLine ( printjobnumber, x1, y1, x2, y2, thickness )
Argument |
Description |
---|---|
printjobnumber |
The number the PrintOpen function assigned to the print job |
x1 |
An integer specifying the x coordinate in thousandths of an inch of the start of the line |
y1 |
An integer specifying the y coordinate in thousandths of an inch of the start of the line |
x2 |
An integer specifying the x coordinate in thousandths of an inch of the end of the line |
y2 |
An integer specifying the y coordinate in thousandths of an inch of the end of the line |
thickness |
An integer specifying the thickness of the line in thousandths of an inch |
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:
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