^GE Graphic Ellipse

Graphic shapes ZPL caret command

Draws an ellipse from a width, a height, an outline thickness and a color.

Format ^GEw,h,t,c

^GE parameters

Parameters of ^GE
ParameterMeaningAccepted valuesDefault
wellipse width (in dots)p. 214

The width of the ellipse.

3 to 4095 dots

3 to 4095; larger values are replaced with 4095.

The value used for the thickness t, or 1.

hellipse height (in dots)p. 214

The height of the ellipse.

Only the width entry says that larger values are replaced with 4095.

3 to 4095 dots

The value used for the thickness t, or 1.

tborder thickness (in dots)p. 214

The thickness of the outline.

2 to 4095 dots

1
cline colorp. 214

The color of the outline.

  • Bblack
  • Wwhite
B

^GE notes and gotchas

  • Interaction

    Compared with ^GC: a circle takes one diameter, while an ellipse takes a width and a height. Thickness and color have the same values and the same defaults in both: thickness 2 to 4095 with default 1, color B or W with default B (pages 212 and 214).

    pp. 212, 214
  • Interaction

    Compared with ^GB: a box accepts width and height up to 32000, where ^GE stops at 4095, and its thickness starts at 1, where ^GE starts at 2. A box also requires width and height to be at least the thickness and has a corner-rounding value (page 210); the ^GE entry states no relation between w, h and t.

    pp. 210, 214
  • Interaction

    The ^FO entry says it sets the upper-left corner of the field area (page 201), and the guide's own ^GE example is positioned with ^FO (page 214). The table of typesetting origins for ^FT (Table 7, page 205) has no row for ellipses, so the guide does not say where ^FT places a ^GE.

    pp. 201, 205, 214
  • Note

    The guide recommends following every command that creates a printable line with ^FS (page 204), and its ^GE example ends the field that way.

    pp. 204, 214
  • Note

    Not stated by the guide: whether ^MU units apply to w, h and t. The entry labels them in dots, and the ^MU examples use only ^FO and ^GB (page 312).

    pp. 214, 312
  • Guide issue

    The defaults and the accepted ranges overlap oddly: w and h default to t or 1 but their range starts at 3, and t defaults to 1 but its range starts at 2. The guide does not comment on this.

    p. 214

^GE example

example.zplZPL
^XA
^FO60,60^GE300,140,6,B^FS
^FO60,240^GE220,90,4^FS
^XZ

Two ellipses. The first is 300 dots wide and 140 high with a 6-dot outline, with the color B written out, and its field origin is 60 dots from the left and 60 dots down. The second is 220 dots wide and 90 high with a 4-dot outline, starts at the same distance from the left and 240 dots down, and leaves out the color, so it takes the default, B.

Guides that use ^GE

BarcoderX is a .NET SDK for thermal labels and barcodes. See how it prints and exports labels.

Source Zebra, ZPL II, ZBI 2, Set-Get-Do, Mirror, WML Programming Guide, P1134473-11EN Rev A, 2026/07/05, pages 201, 204, 205, 210, 212 to 214, 312, 1765.

Written by BarcoderX in its own words. Checked against the guide on 2026-11-14.

ZPL and ZPL II are trademarks of Zebra Technologies Corporation. This reference is written by BarcoderX in its own words from Zebra's published programming guide. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.