Draw_line – CognitiveTPG DLXi User Manual
Page 68
![background image](/manuals/334304/68/background.png)
S T A N D A R D P R I N T E R C O M M A N D S
DRAW_LINE
Function
Draws a line from coordinate x1, y1 to x2,y2.
Explicit Form
DRAW_LINE x1 y1 x2 y2
t c
Parameters
x1
Starting X coordinate of line.
x2
Starting Y coordinate of line.
x2
Ending X coordinate of line.
y2
Ending Y coordinate of line.
t
Optional; specifies line thickness in
dots. The default is 1.
c
Optional; specifies plotting modes.
B=plot black, W=plot white.
Comments
DRAW_LINE
can draw horizontal and vertical lines
on labels if you set t, x1,y1,x2, y2 equal to 1, but the
lines are two dots wide. Lines drawn with this
command may not print well at 200 DPI or higher
resolution unless the t parameter is 2 or more.
Some early printers do not support the t parameter,
in which case we suggest using multiple FILL_???
commands to create boxes with thicker lines.
Note
NOTE:
Avoid drawing vertical lines around bar
codes. Vertical lines near the bar code edge may be
confused by scanners as being part of the code.
Example
DRAW_LINE 15 15 150 285 5
DRAW_LINE 15 285 150 15 5
DRAW_LINE 15 5 150 5 5
Revision F, January 2012, CognitiveTPG
59