Draws a rectangle from two corners and a line thickness.
Engine status: Rendered
This command produces visible output in the preview.
BOX x1 y1 x2 y2 t! 0 200 200 210 1
PAGE-WIDTH 576
BOX 10 10 560 200 2
PRINTOpen this example in the preview →
Output of the example above in our renderer (203 dpi). Not verified on a physical printer.
| Parameter | Meaning |
|---|---|
x1 y1 | Top-left corner, in dots; fields are space-separated, no commas |
x2 y2 | Bottom-right corner, in dots — not width/height |
t | Line thickness in dots |
Separating arguments with commas: CPCL fields are space-separated, so BOX 10,10,560,200,2 becomes one broken argument and nothing is drawn. Also x2/y2 is a corner, not a width.
ZPL equivalent: ^GB · Language comparison
! · PAGE-WIDTH · TEXT · TEXT90 · TEXT180 · TEXT270 · BARCODE · LINE · EXPANDED-GRAPHICS · PRINT · FORM · CONTRAST · TONE · SPEED · JOURNAL · SETMAG · CENTER