Skip to content

^GD Graphic Diagonal Line

Draws a diagonal line.

Graphics · Updated 2026-10-20

Syntax

^GDw,h,t,c,o

Parameters

ParameterWhat it doesValues
wWidth, in dots.3 to 32000
hHeight, in dots.3 to 32000
tLine thickness, in dots.1 to 32000
cColour.B or W
oDirection.R = right-leaning (/), L = left-leaning (\)

Example

Edit the code and the label redraws. This is the same engine as the API.

Try it

Preview

100%

Questions

What does ^GD do in ZPL?

Draws a diagonal line.

What is the syntax of ^GD?

^GDw,h,t,c,o

Related commands