^GD Graphic Diagonal Line
Draws a diagonal line.
Graphics · Updated 2026-10-20
Syntax
^GDw,h,t,c,o
Parameters
| Parameter | What it does | Values |
|---|---|---|
w | Width, in dots. | 3 to 32000 |
h | Height, in dots. | 3 to 32000 |
t | Line thickness, in dots. | 1 to 32000 |
c | Colour. | B or W |
o | Direction. | R = right-leaning (/), L = left-leaning (\) |
Example
Edit the code and the label redraws. This is the same engine as the API.
Questions
What does ^GD do in ZPL?
Draws a diagonal line.
What is the syntax of ^GD?
^GDw,h,t,c,o