^GF — Graphic Field: raw images

ZPL course · ZPL FAQ

Command reference: Labelary ZPL introduction.

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

^GF — Graphic Field: raw images

Goal

Print raw images with ^GF.

Description

^GF paints a raw bitmap from inline hexadecimal: total bytes, row width in bytes, then the nibbles themselves. Below is a 16×16 solid square: 32 bytes of F nibbles.

Example

^XA
^FO20,20^GFA,32,32,2,,FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
^XZ

Rendered ^GF label

Result

A 16×16 solid square decoded from 32 bytes of F nibbles.

Article author: Arthur Isaev