ZPL commands

~DG · Download Graphics

Downloads a graphic logo/image into printer memory; the graphic is later recalled via ^XG.

Downloads a graphic (logo/image) into printer memory; the graphic is later recalled via ^XG.

Parameters

  • ~DGd:o.x,t,w,data - d:o.x: Drive, name and extension .GRF (e.g. R:LOGO.GRF)
  • ~DGd:o.x,t,w,data - t: Total number of data bytes (bytes per row × rows)
  • ~DGd:o.x,t,w,data - w: Bytes per row (width in dots ÷ 8, rounded up)
  • ~DGd:o.x,t,w,data - data: Graphic data as ASCII hex (each hex character = 4 dots)

Example

~DGR:BOX.GRF,00008,00002,
FFFF
8001
8001
FFFF
^XA
^FO50,50^XGR:BOX.GRF,4,4^FS
^XZ
ZPL preview: ~DG · Download Graphics

Tip

The data follows the parameters directly (no ^FD). On R: the graphic stays until power-off, on E: permanently - delete it with ^ID or ~EG.