Graphics

^GDGraphic Diagonal Line

Draws a diagonal line between two corners of a box.

Category
Graphics
Syntax
^GDw,h,t,c,o

What ^GD does

^GD draws a diagonal line across an implied rectangle. Specify the bounding width and height, the thickness, colour, and orientation (which corners to connect). Useful for 'void' marks and crossed-out sections.

Syntax

^GDw,h,t,c,o

Parameters

ParameterDescriptionValuesDefault
wBounding width, dots
hBounding height, dots
tLine thickness, dots1
oOrientationR (\) or L (/)R

Example

^XA
^FO50,50^GD200,200,4,B,R^FS
^XZ

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.