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.  For more
     information see the PCL 5 Printer Language Technical
     Reference Manual.

     The following example shows a simple command sequence
     using BZ ( Bezier Absolute ) to draw a Bezier Curve in
     the shape of a sine wave.

          Note:  The Bezier command is not
                 supported on printers prior to
                 the LaserJet 4 printer.

     LEGEND: Ec = [Ctrl] [P] Esc] in DOS EDIT

     EcE                           Resets the printer.

     Ec%0B                         Enters HP-GL/2 mode.

     IN;                           Initializes HP-GL/2.

     SP1;                          Selects pen number 1
                                   (black). The SP command
                                   must be used to enable
                                   printing.

     PA1000,5000;PD;               Specifies absolute
                                   plotting and moves to
                                   position (1000,5000) then
                                   puts the pen down.

     BZ2000,8000,4000,2000,5000,5000;   Draws a bezier curve
                                   with (1000,5000) as the
                                   starting point (first
                                   control point). Specifies
                                   (2000,8000), (4000,2000),
                                   and (5000,5000) as the
                                   second, third and fourth
                                   control points.

     Ec%0A                         Enters PCL mode.

     EcE                           Sends a reset to end the
                                   job and eject the page.



            Copyright  Hewlett-Packard Co. 1993
   The information contained herein is subject to change
                      without notice.
   Hewlett-Packard shall not be liable for incidental or
  consequential damages in connection with the use of this
                         material.