^GE
Graphic EllipsePreview: partialDraws an ellipse inside a width and height, with a configurable border thickness and colour.
Syntax
^GEw,h,t,cParameters
| Parameter | Description and accepted values | If omitted |
|---|---|---|
| w | Ellipse width in dots.Thickness to 32000 dots — width | Value of t |
| h | Ellipse height in dots.Thickness to 32000 dots — height | Value of t |
| t | Border thickness in dots.1 to 32000 dots — border thickness | 1 dot |
| c | B draws black; W draws white.B black or W white | B |
How it works
^GE creates an elliptical graphic field. Unlike ^GC, its width and height can differ for oval badges and callouts.
A border at least half the smaller side fills the ellipse instead of leaving a hollow centre. Use a smaller thickness when an outline must remain visible.
The command is closed with ^FS and follows regular graphic-field placement. Use ^FO for its top edge or ^FT for its bottom edge.
Example
ZPL
^XA
^FO80,50^GE220,110,4,B^FS
^XZRendering…
How the preview on this site handles it
The preview draws the ellipse and its ^FO/^FT and ^FR placement. ^GE has no orientation parameter, so ^FW does not rotate it.
Common mistakes
- Using equal dimensions when an oval is intended.
- Making the border unexpectedly fill the centre.
- Assuming ^FW rotates the ellipse.