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

21-24 The Polygon Group EN
Figure 21-15Edge Relative Rectangle Command
The only difference between the ER command and the RR (Fill
Relative Rectangle) command is that the ER command produces
an outlined rectangle, and RR, a filled one.
The ER command clears the polygon buffer and then uses it to define
the rectangle before drawing. Refer to “Drawing Polygons” earlier in
this chapter for more information.
The following example uses relative coordinates to draw the same
image shown in the EA command example. Compare this example
with the EA example to understand the differences between the
coordinates used.
Table 21-12 Example: Using ER to Draw Rectangles
?E Reset the printer.
?%0B Enter HP-GL/2 mode.
IN; Initialize HP-GL/2 mode.
SP1; Select pen number 1. The SP command
must be used to enable printing.
SC0,150,0,150,1; Specify user scaling, with P1 being (0,0)
and P2 (150,150); the “1” indicates
isotropic scaling.