Sign In
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutionsAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
Home›ZPL Command Matrix›^GD

^GD — Graphic Diagonal Line

Draws a diagonal line.

Syntax^GDw,h,t,c,o
CategoryGraphics

In the preview

This command is supported by the preview engine.

Example

^GD100,100,3

Runnable example

^XA^PW609^LL406^FO60,60^GD400,240,6,B,R^FS^XZ

Open this label in the editor

Parameters

ParameterDescriptionType
wbox width in dotsintDefault: 3 · Range: 1–32000
hbox height in dotsintDefault: 3 · Range: 1–32000
tline thickness in dotsintDefault: 1 · Range: 1–32000
cline colour (B=black, W=white)enumDefault: B · Options: B, W
odiagonal direction (R=right leaning \, L=left leaning /)enumDefault: R · Options: R, L

Source

Zebra ZPL II Programming Guide (P1134473-11EN), page 213.

^GB · ^GC · ^GE · ^GF · ^IM

Try this command in the preview