zpl.tools
Graphics Commands

^GF - Graphic Field

Downloads and prints graphic/raster image

^GF - Graphic Field

Overview

The ^GF command embeds and prints raster graphics (bitmapped images) directly in a label format.

Syntax

^GFc,b,t,data

Parameters

  • c = Compression type
    • A = ASCII hexadecimal
    • B = Binary
    • C = Compressed
  • b = Bytes per row
    • Width of image in bytes
  • t = Total bytes
    • Complete size of image data
  • data = Image data (hex or binary)

Description

  • Embeds image data directly in label
  • Supports compression for efficiency
  • Positions with ^FO
  • Useful for logos and photos

Usage Notes

  • Image must be pre-converted to bitmap
  • Data can be ASCII hex or binary
  • Compression reduces format size
  • Use with ^FO for positioning

Example

^XA
^FO50,50
^GFA,100,100,ABC123...
^FS
^XZ

Compression Types

TypeEncodingUsageSize
AASCII hexText formatsLargest
BBinaryDirect dataMedium
CCompressedEfficientSmallest

Image Preparation

  • Convert image to monochrome bitmap
  • Determine width and height in bytes
  • Compress if needed
  • Convert to hex or binary format
  • ~DG - Download Graphic
  • ^XG - Recall Graphic
  • ^FO - Field Origin

See Also