Page 149 - ZPL II Programming Guide
P. 149

ZPL Commands    129
                                                                                                         ~DG




                           This is an example of using the ~DG command to load a checkerboard pattern into DRAM. The
                           name used to store the graphic is SAMPLE.GRF:

                                            ZPL II CODE                     GENERATED LABEL
                                ~DGR:SAMPLE.GRF,00080,010,
                                FFFFFFFFFFFFFFFFFFFF
                                8000FFFF0000FFFF0001
                                8000FFFF0000FFFF0001
                                8000FFFF0000FFFF0001
                                FFFF0000FFFF0000FFFF
                                FFFF0000FFFF0000FFFF
                                FFFF0000FFFF0000FFFF
                                FFFFFFFFFFFFFFFFFFFF
                                ^XA
                                ^F020,20^XGR:SAMPLE.GRF,1,1^FS
                                ^XZ


                              Comments  Do not use spaces or periods when naming your graphics. Always use different
                              names for different graphics.
                              If two graphics with the same name are sent to the printer, the first graphic is erased and
                              replaced by the second graphic.
















































               9/15/06                              ZPL II Programming  Guide                  45541L-004 Rev. A
   144   145   146   147   148   149   150   151   152   153   154