^GFA: Graphic Field (ZPL)
Prints a 1-bit image sent as ASCII hex.
Graphic field ASCII places a monochrome bitmap on the label. The counts are the binary size, the graphic size, and the bytes per row, followed by hex digits. This library's wrapper sends an uncompressed image: both sizes equal the packed bitmap length, and each source byte becomes two hex characters. The bitmap must be row-packed, one bit per dot, with the row padded to a whole byte. A short buffer is rejected instead of printing a torn image. The wrapper also sets print width and label length so a 4 by 6 inch page is not clipped by a narrower previous format.
Syntax
^GFAa,b,c,d,data
| Parameter | Type | Range | Default |
|---|---|---|---|
| compression | number | 0 to 0 | |
| binary bytes | number | 1 to 5000000 bytes | |
| graphic bytes | number | 1 to 5000000 bytes | |
| bytes per row | number | 1 to 2000 bytes |
Examples
One black row, 8 dots
^XA^PW8^LL1^FO0,0^GFA,1,1,1,FF^FS^XZ
Send to my printer
Related fixes
See also
Supported models
Source: Zebra documentation