zpl.tools
Graphics and images

^EG / ~EG - Erase Download Graphics

Erases every stored `.GRF` graphic from all writeable devices.

^EG erases every stored graphic on every writeable device. It takes no arguments, so nothing narrows it, and

^ID deletes objects by name instead. The renderer erases the same graphics, so a format that erases and then recalls draws nothing here too.

Syntax

^EG

Also accepted with the other prefix: ~EG.

Support

Supportedparsed: full · state: full · rendered: full

Every documented parameter renders the same output Labelary produces.

Labelary renders this command.

Parameters

^EG / ~EG takes no arguments.

Behavior

^EG and ~EG are the same command, and the guide's entry for ~EG is a cross-reference to ^ID. The two prefixes do not differ here, unlike the ten mnemonics where they name unrelated commands.

The erase takes effect where the command stands. A recall before it draws, a recall after it reports File '...' does not exist, and a ~DG written after it survives. We measured this against Labelary on 2026-08-19, over all four writeable devices.

The guide's cross-reference to ^ID overstates the reach. A ^DF format stored before an ^EG still replays at a later ^XF, so only graphics go.

An object lives for one conversion request only, so ^EG has no accumulated memory to reclaim.

Differences from the specification

zpl.tools against the ZPL II guide

Where our renderer behaves differently from the specification.

  • The guide's entry for ~EG is a cross-reference to ^ID, which deletes every kind of stored object. Labelary erases graphics only, and so do we. We measured this on 2026-08-19: a ^DF format stored before an ^EG still replays at a later ^XF, while a graphic on any of R:, E:, B: and A: is gone. — not pinned by a test

Example

^EG before a recall of a graphic downloaded in the same request:

~DGR:LOGO.GRF,00080,010,
FFFFFFFFFFFFFFFFFFFF
8000FFFF0000FFFF0001
8000FFFF0000FFFF0001
8000FFFF0000FFFF0001
FFFF0000FFFF0000FFFF
FFFF0000FFFF0000FFFF
FFFF0000FFFF0000FFFF
FFFFFFFFFFFFFFFFFFFF
^XA
^EG
^FO50,50^XGR:LOGO.GRF^FS
^FO50,120^A0N,30,30^FDlogo erased^FS
^XZ

Open in viewer