Specifications
ZPL Commands
^GD
158
45541L-004 Rev. A ZPL II Programming Guide 9/15/06
^GD
Graphic Diagonal Line
Description The ^GD command produces a straight diagonal line on a label. This can be
used in conjunction with other graphic commands to create a more complex figure.
Format ^GDw,h,t,c,o
This table identifies the parameters for this format:
Parameters Details
w = box width (in
dots)
Accepted Values: 3 to 32000
Default Value: value of t (thickness) or 1
h
= box height (in
dots)
Accepted Values: 3 to 32000
Default Value: value of t (thickness) or 1
t
= border thickness
(in dots)
Accepted Values: 1 to 32000
Default Value: 1
c = line color Accepted Values:
B = black
W = white
Default Value: B
o = orientation
(direction of the
diagonal)
Accepted Values:
R (or /)
= right-leaning diagonal
L (or \)
= left-leaning diagonal
Default Value: R
Example • This is an example of how to create a diagonal line connecting one corner with the
opposite corner of a box on a printed label: