Specifications

Refer to the ~DG command in the Command Reference section
for detailed instructions on calculating the total number of bytes
and the number of bytes per row.
For this exercise, please create a “smile” graphic in a drawing or paint
program like the one shown below so that the graphic is 1.5 inches x
1.5 inches at 200 dpi.
Save the graphic in .PCX format and name it: SMILE.PCX. Convert
this file to the .GRF format using ZTools™ for Windows.
The ZPL II instructions you will use in this exercise are:
Format Bracket instructions ^XA, ^XZ
Label Field Definition Instructions ^FO, ^FS
Recall Graphic Instruction ^XG
The ZPL II instructions sent to the printer are:
~DGR:SMILE.GRF,12012,39
(depending on the image size and how you created the graphic, there
will be many lines of ASCII HEX data that follow the ~DG instruction
line which is a HEX description of your image)
^XA
^FO50,50^XGR:SMILE.GRF,1,1^FS
^XZ
CHAPTER 4 37
ZPL II Programming Exercises