BOX — Rectangle / Box
Plain English
Draws a rectangle (box) from the top-left corner (x1,y1) to the bottom-right corner (x2,y2) with the specified line thickness. An optional radius parameter rounds the corners.
When to use
For drawing borders, boxes, table cells, and rectangular frames on your label.
Syntax
BOX x1,y1,x2,y2,thickness[,radius]
Parameters
| Parameter | Description |
|---|---|
x1 | Top-left X coordinate in dots |
y1 | Top-left Y coordinate in dots |
x2 | Bottom-right X coordinate in dots |
y2 | Bottom-right Y coordinate in dots |
thickness | Line thickness in dots |
radius | Corner radius in dots (optional, default 0) |
Example
BOX 20,20,380,260,2
Draw a rectangle from (20,20) to (380,260) with 2-dot lines