ZPL commands

^GD · Graphic Diagonal Line

Draws a diagonal line within the given width/height.

Draws a diagonal line within the given width/height.

Parameters

  • ^GDw,h,t,c,o - w: Width of the diagonal box in dots (default = t)
  • ^GDw,h,t,c,o - h: Height of the diagonal box in dots (default = t)
  • ^GDw,h,t,c,o - t: Line thickness in dots (default 1)
  • ^GDw,h,t,c,o - c: Color (B/W, default B)
  • ^GDw,h,t,c,o - o: Direction: R or / = right-leaning (default), L or \ = left-leaning

Example

^XA
^FO50,50^GD200,100,4,B^FS
^XZ
ZPL preview: ^GD · Graphic Diagonal Line

Tip

The default R draws from bottom left to top right, L from top left to bottom right - for separator lines or price cross-outs.