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,cParameters
- 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
^XZAngle Reference
| W vs H | Angle | Usage |
|---|---|---|
| W = H | 45° | Diagonal |
| W > H | < 45° | Shallow |
| W < H | > 45° | Steep |
Related Commands
^GB- Graphic Box^GC- Graphic Circle^GE- Graphic Ellipse