What ^GD does
^GD draws a diagonal line across an implied rectangle. Specify the bounding width and height, the thickness, colour, and orientation (which corners to connect). Useful for 'void' marks and crossed-out sections.
Syntax
^GDw,h,t,c,oParameters
| Parameter | Description | Values | Default |
|---|---|---|---|
w | Bounding width, dots | — | — |
h | Bounding height, dots | — | — |
t | Line thickness, dots | — | 1 |
o | Orientation | R (\) or L (/) | R |
Example
^XA
^FO50,50^GD200,200,4,B,R^FS
^XZPaste this into the free ZPL viewer to see it render, or convert it to PDF.
Related commands
See the full ZPL command reference for all 92 documented commands.
