Draws a filled rectangle at the given position; thin values make it a separator rule.
Engine status: Rendered
This command produces visible output in the preview.
BAR x, y, w, hSIZE 100 mm, 150 mm
GAP 3 mm, 0 mm
CLS
BAR 50, 500, 700, 4
PRINT 1Open this example in the preview →
Output of the example above in our renderer (203 dpi). Not verified on a physical printer.
| Parameter | Meaning |
|---|---|
x, y | Top-left corner, in dots |
width, height | Width and height of the filled rectangle, in dots |
Writing corners as in BOX: BAR takes width and height, so BAR 50, 500, 700, 4 is a 700 × 4 dot bar starting at (50,500), not one that ends at (700,4).
ZPL equivalent: ^GB · EPL LO · Language comparison
SIZE · GAP · REFERENCE · CLS · TEXT · BARCODE · QRCODE · BOX · BITMAP · PRINT · DIRECTION · DENSITY · SPEED · OFFSET · SET · CODEPAGE · BLINE