HP PCL/PJL reference (PCL 5 Printer Language) - Technical Reference Manual Part II

20-8 The Vector Group EN
Figure 20-5 Drawing arcs (3 of 3)
Drawing Bezier Curves
The Bezier Absolute (BZ) and Bezier Relative (BR) commands use
your current pen position as the first control point in the Bezier curve.
You specify the second, third, and fourth control points. If you are
drawing more than one curve, the fourth control point of the first curve
(X
3
, Y
3
) becomes the first control point of the next curve.
The following example shows a simple command sequence using
BZ to draw a Bezier Curve in the shape of a sine wave (shown in the
figure following the example).
Table 20-5 Example: Drawing Bezier Curves
E
C
E Reset the printer.
E
C
%ØB Enter HP-GL/2 mode.
IN; Initialize HP-GL/2.
SP1; Select pen number 1. The SP command
must be used to enable printing.
PA1000,5000;PD; Specify absolute plotting and move to
position (1000,5000); pen down.
BZ2000,8000,
4000,2000,5000,5000;
Draw a Bezier curve with (1000,5000) as
the starting point (first control point).
Specify (2000,8000), (4000,2000), and
(5000,5000) as the second, third, and
fourth control points.
E
C
%ØA Enter the PCL mode.