Specifications

127
ZPL Commands
~DG
9/15/06 ZPL II Programming Guide 45541L-004 Rev. A
~DG
Download Graphics
Description The ~DG command downloads an ASCII Hex representation of a graphic
image. If
.GRF is not the specified file extension, .GRF is automatically appended.
For more saving and loading options when downloading files, see ~DY on page 134.
Format ~DGd:o.x,t,w,data
This table identifies the parameters for this format:
This is the key for the examples that follow:
x
= width of the graphic in millimeters
y
= height of the graphic in millimeters
z
= dots/mm = print density of the printer being programmed
8
= bits/byte
Parameters Details
d = device to store
image
Accepted Values: R:, E:, B:, and A:
Default Value: R:
o = image name Accepted Values: 1 to 8 alphanumeric characters
Default Value: if a name is not specified, UNKNOWN is used
x = extension Fixed Value: .GRF
t
= total number of
bytes in graphic
See the formula in the examples below.
w = number of bytes
per row
See the formula in the examples below.
data = ASCII
hexadecimal
string defining
image
The data string defines the image and is an ASCII hexadecimal
representation of the image. Each character represents a horizontal
nibble of four dots.