
Graphics
Line Graphics
106
P1026208-001 Rev. B Software Integrator Guide 10/29/2010
The ZPL programming example above shows how the rotation of a graphic can be
simulated to be like the
^FO rotation of text (^A) objects around a single point (in this
case - image map location 200,200).
The third parameter of the Graphic Box/Line (
^GBw,h,t), is set to half of the graphic
boxes width or height, which ever is smallest o f the two. Making this parameter larger
than this will have no effect on the printed result until the width or height parameter value
has been exceeded. If the border thickness (t) parameter value exceeds the larger of the
width and height parameters, then the graphic box becomes a square with the size set by
the border thickness.
The diagonal line graphics are rotated in the same manor as the line graphic boxes were
on the previous page. The diagonal lines have the same dimensions as the boxes too in
this example.
Notice how the diagonal lines thickness parameter is set to the vertical axis (width). The
greater the ratio of diagonal line’s height to width ratio (h/w), the wider the line will appear
up to the thickness of a straight horizontal line.
Diagonal lines can also create arrow heads for lines. Solid and filled circles also make
common line terminators.
Figure 7-3 • Rotating Objects without a Parameter
ZPL II CODE
GENERATED LABEL
^XA
^LL560
^FO200,200,0^GD050,100,40,B,L^FS
^FT200,200,0^GD100,050,20,B,R^FS
^FT200,200,1^GD050,100,20,B,L^FS
^FO200,200,1^GD100,050,20,B,R^FS
^CN1
^PN0
^XZ
Diagonal Line Length = w² + h²
Kommentare zu diesen Handbüchern