ZPL commands

^GF · Graphic Field

Prints a bitmap logo, image directly from the field data. Basis of the ^GFA graphics zplCloud generates for logos.

Prints a bitmap (logo, image) directly from the field data. Basis of the ^GFA graphics zplCloud generates for logos.

Parameters

  • ^GFa,b,c,d,data - a: Compression type: A = ASCII hex (default), B = binary, C = compressed binary (AR)
  • ^GFa,b,c,d,data - b: Number of data bytes transmitted (equals c for A)
  • ^GFa,b,c,d,data - c: Total bytes of the graphic (bytes per row × rows)
  • ^GFa,b,c,d,data - d: Bytes per row (width in dots ÷ 8, rounded up)
  • ^GFa,b,c,d,data - data: Graphic data directly after the comma up to ^FS

Example

^XA
^FO50,50^GFA,8,8,2,FFFF80018001FFFF^FS
^XZ
ZPL preview: ^GF · Graphic Field

Tip

With format A the hex data can additionally be encoded with ZPL compression (repeat characters G–Y/g–z) or as :Z64: (zlib + Base64) - this shortens transfers considerably.