Specifications
155
ZPL Commands
^GB
9/15/06 ZPL II Programming Guide 45541L-004 Rev. A
^GB
Graphic Box
Description The ^GB command is used to draw boxes and lines as part of a label format.
Boxes and lines are used to highlight important information, divide labels into distinct areas,
or to improve the appearance of a label. The same format command is used for drawing either
boxes or lines.
Format ^GBw,h,t,c,r
This table identifies the parameters for this format:
For the
w and h parameters, keep in mind that printers have a default of 6, 8, 12, or
24 dots/millimeter. This comes out to 153, 203, 300, or 600 dots per inch. To determine the
values for w and h, calculate the dimensions in millimeters and multiply by 6, 8, 12, or 24.
If the width and height are not specified, you get a solid box with its width and height as
specified by value
t.
The roundness-index is used to determine a rounding-radius for each box. Formula:
rounding-radius = (rounding-index / 8) * (shorter side / 2)
where the shorter side is the lesser of the width and height (after adjusting for minimum and
default values).
Parameters Details
w = box width (in
dots)
Accepted Values: value of t to 32000
Default Value: value used for thickness (t) or 1
h = box height (in
dots)
Accepted Values: value of t to 32000
Default Value: value used for thickness (t) 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
r = degree of corner-
rounding
Accepted Values: 0 (no rounding) to 8 (heaviest rounding)
Default Value: 0