zpl.tools
Graphics Commands

^GD - Graphic Diagonal Line

Draws diagonal lines

^GD - Graphic Diagonal Line

Overview

The ^GD command draws diagonal lines on the label at any angle.

Syntax

^GDw,h,t,c

Parameters

  • w = Line width (length along x-axis)
  • h = Line height (length along y-axis)
  • t = Line thickness in dots
  • c = Color
    • B = Black (default)
    • W = White

Description

  • Draws diagonal lines
  • Positioned with ^FO
  • Supports variable thickness
  • Useful for decorative elements

Usage Notes

  • Width and height determine angle
  • Width and height equal = 45° angle
  • Positioned with ^FO
  • Common for decorative borders

Example

^XA
^FO50,50
^GD100,100,5,B
^FS
^XZ

Angle Reference

W vs HAngleUsage
W = H45°Diagonal
W > H< 45°Shallow
W < H> 45°Steep
  • ^GB - Graphic Box
  • ^GC - Graphic Circle
  • ^GE - Graphic Ellipse

See Also