ZPLToolkit

^GE

Graphic EllipsePreview: partial

Draws an ellipse inside a width and height, with a configurable border thickness and colour.

Syntax

^GEw,h,t,c

Parameters

ParameterDescription and accepted valuesIf omitted
wEllipse width in dots.Thickness to 32000 dots — widthValue of t
hEllipse height in dots.Thickness to 32000 dots — heightValue of t
tBorder thickness in dots.1 to 32000 dots — border thickness1 dot
cB draws black; W draws white.B black or W whiteB

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
^XZ

Rendering…

A 220 by 110 dot outlined ellipse.
Open in the viewer

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.

See also