^XG — Recall a Stored Graphic

ZPL course · ZPL FAQ

Command reference: Labelary ZPL introduction.

Below, commands are bold, parameters are colored, field data stays plain.

^XG — Recall a Stored Graphic

Goal

Recall a stored graphic with ^XG.

Description

^XG prints a graphic previously downloaded with ~DG, scaled by the two magnification factors. (There is no ^GX in ZPL.)

Example

^XA
^FX Prints SAMPLE.GRF stored earlier with a ~DG download.
^FO20,20^XGR:SAMPLE.GRF,1,1^FS
^FO20,120^A0N,28,28^FDLogo above^FS
^XZ

Rendered ^XG label

Result

The preview shows only the caption: SAMPLE.GRF is not in preview memory — on a printer the logo lands above it.

Article author: Arthur Isaev

Banner image