Figure 21-12

 

 

Note

Any line drawn along the border of the effective window causes the

 

line to be clipped, producing a line width one-half of the defined pen

 

width. For example, all the lines drawn in the above example are half

 

the width of the other lines since they are clipped at the window

 

borders.

 

The only difference between the EA command and the RA (Fill

 

 

Rectangle Absolute) command is that the EA command produces

 

an outlined rectangle, and RA, a filled one.

 

The EA command clears the polygon buffer and then uses it to

 

define the rectangle before drawing. Refer to Drawing Polygons

 

at the beginning of this chapter for more information.

 

The following example uses absolute coordinates to draw some

 

rectangles. The same image is drawn later using the ER command

 

instead. Compare this example with the ER example to understand

 

the differences between the coordinates used (relative vs. absolute).

 

Table 21-8 Example: Using EA to Draw Rectangles

?E

?%0B

IN;

Reset the printer.

Enter HP-GL/2 mode.

Initialize HP-GL/2 mode.

21-18The Polygon Group

EN

Page 530
Image 530
HP 5961-0509 manual Example Using EA to Draw Rectangles, 21-18The Polygon Group