Graphics

^GBGraphic Box

Draws a box, line, or filled rectangle.

Category
Graphics
Syntax
^GBw,h,t,c,r

What ^GB does

^GB draws rectangles, horizontal/vertical lines, and filled blocks. Set width, height, and border thickness in dots. A line is just a box with zero height (or width). Filled boxes are the basis for reverse-print callouts with ^FR.

Syntax

^GBw,h,t,c,r

Parameters

ParameterDescriptionValuesDefault
wBox width, dots
hBox height, dots
tBorder thickness, dots1
cLine colourB, WB
rCorner rounding0–80

Example

^XA
^FO50,50^GB500,3,3^FS
^FO50,80^GB200,100,4^FS
^XZ

First ^GB is a horizontal line; second is a bordered box.

Paste this into the free ZPL viewer to see it render, or convert it to PDF.

See the full ZPL command reference for all 92 documented commands.

Work with your labels, not just read about them

Zentralabel converts, previews, validates, and enriches ZPL labels right in your browser — free tools for one-offs, batch processing for scale.