Search code examples
zplzpl-ii

Dotted or dashed lines possible with ZPL II?


I'm working on creating a new ZPL label, and would like to draw a dashed line, but I haven't found any information on how to do that or if it's even possible.

Am I asking too much of ZPL?


Solution

  • You can easily create a dashed pattern with ^GF. It's not the most efficient way in terms of ZPL code size, but it's very easy to amend by hand:

    ^XA
    ^FO10,10
    ^GFA,100,100,50,FFFFFF0000FFFFFF0000FFFFFF0000FFFFFF0000FFFFFF0000FFFFFF0000FFFFFF0000FFFFFF0000FFFFFF0000FFFFFF0000^FS
    ^IS1.png,N
    ^XZ
    

    Result:

    enter image description here