Skip to command documentation
Supportedgraphicrasterfield scope
^XG

Recall Graphic

^XG configures recall Graphic. It applies to the current field and can change pixels in the rendered label.

Syntax
^XGd:o.x,mx,my
d

Source device of stored image

Sets source device of stored image. It can be omitted when the documented default is suitable.

Default
search priority ( R: , E: , B: , and A: )
Required
No
Documented valuesREBA

d variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison3 variations

d = R

Uses R for source device of stored image while the other command values stay at representative defaults.

ZPLcaret-xg-d-1.zpl
~DGR:ICON.GRF,8,1,FF818181818181FF
^XA
^PW640
^LL360
^FO90,55
^XGR:ICON.GRF,4,4^FS
^FO28,318^A0N,22,22^FDCaret XG parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

d = E

Uses E for source device of stored image while the other command values stay at representative defaults.

ZPLcaret-xg-d-2.zpl
~DGR:ICON.GRF,8,1,FF818181818181FF
^XA
^PW640
^LL360
^FO90,55
^XGE:ICON.GRF,4,4^FS
^FO28,318^A0N,22,22^FDCaret XG parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

d = A

Uses A for source device of stored image while the other command values stay at representative defaults.

ZPLcaret-xg-d-3.zpl
~DGR:ICON.GRF,8,1,FF818181818181FF
^XA
^PW640
^LL360
^FO90,55
^XGA:ICON.GRF,4,4^FS
^FO28,318^A0N,22,22^FDCaret XG parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
o

Name of stored image

Sets name of stored image. It can be omitted when the documented default is suitable.

Default
if a name is not specified, UNKNOWN is used
Required
No
Documented values18

o variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

o = 1

Uses 1 for name of stored image while the other command values stay at representative defaults.

ZPLcaret-xg-o-1.zpl
~DGR:ICON.GRF,8,1,FF818181818181FF
^XA
^PW640
^LL360
^FO90,55
^XGR:1.GRF,4,4^FS
^FO28,318^A0N,22,22^FDCaret XG parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

o = 8

Uses 8 for name of stored image while the other command values stay at representative defaults.

ZPLcaret-xg-o-2.zpl
~DGR:ICON.GRF,8,1,FF818181818181FF
^XA
^PW640
^LL360
^FO90,55
^XGR:8.GRF,4,4^FS
^FO28,318^A0N,22,22^FDCaret XG parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
x

Extension l

Sets extension l. It can be omitted when the documented default is suitable.

Required
No
Documented valuesGRF

x variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

x = GRF

Uses GRF for extension l while the other command values stay at representative defaults.

ZPLcaret-xg-x-1.zpl
~DGR:ICON.GRF,8,1,FF818181818181FF
^XA
^PW640
^LL360
^FO90,55
^XGR:ICON.GRF,4,4^FS
^FO28,318^A0N,22,22^FDCaret XG parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

x = GRF2

Uses GRF2 for extension l while the other command values stay at representative defaults.

ZPLcaret-xg-x-2.zpl
~DGR:ICON.GRF,8,1,FF818181818181FF
^XA
^PW640
^LL360
^FO90,55
^XGR:ICON.GRF2,4,4^FS
^FO28,318^A0N,22,22^FDCaret XG parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
mx

Magnification factor on the x-axis

Sets magnification factor on the x-axis. It can be omitted when the documented default is suitable.

Default
1
Range
1–10
Required
No
Documented values110

mx variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

mx = 1

Uses 1 for magnification factor on the x-axis while the other command values stay at representative defaults.

ZPLcaret-xg-mx-1.zpl
~DGR:ICON.GRF,8,1,FF818181818181FF
^XA
^PW640
^LL360
^FO90,55
^XGR:ICON.GRF,1,4^FS
^FO28,318^A0N,22,22^FDCaret XG parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

mx = 10

Uses 10 for magnification factor on the x-axis while the other command values stay at representative defaults.

ZPLcaret-xg-mx-2.zpl
~DGR:ICON.GRF,8,1,FF818181818181FF
^XA
^PW640
^LL360
^FO90,55
^XGR:ICON.GRF,10,4^FS
^FO28,318^A0N,22,22^FDCaret XG parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
my

Magnification factor on the y-axis

Sets magnification factor on the y-axis. It can be omitted when the documented default is suitable.

Default
1
Range
1–10
Required
No
Documented values110

my variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

my = 1

Uses 1 for magnification factor on the y-axis while the other command values stay at representative defaults.

ZPLcaret-xg-my-1.zpl
~DGR:ICON.GRF,8,1,FF818181818181FF
^XA
^PW640
^LL360
^FO90,55
^XGR:ICON.GRF,4,1^FS
^FO28,318^A0N,22,22^FDCaret XG parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

my = 10

Uses 10 for magnification factor on the y-axis while the other command values stay at representative defaults.

ZPLcaret-xg-my-2.zpl
~DGR:ICON.GRF,8,1,FF818181818181FF
^XA
^PW640
^LL360
^FO90,55
^XGR:ICON.GRF,4,10^FS
^FO28,318^A0N,22,22^FDCaret XG parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

Primary source

Official Zebra reference

Use the manufacturer reference for printer- and firmware-specific behavior beyond ZPLr’s pinned rendering profile.

Open Zebra documentation

ZPLr Command Reference

Independent documentation for the pinned ZPL II 2025 renderer profile. Examples run locally in your browser.

ZPL, ZPL II, Zebra, and Zebra Programming Language are trademarks or registered trademarks of Zebra Technologies Corp. ZPLr is independent and is not affiliated with or endorsed by Zebra Technologies Corp.