HP (Hewlett-Packard) PCL Printer User Manual


 
5-52 The PCL Print Model EN
Rectangular Fill Examples
Following are two examples that demonstrate the way to print and fill
rectangular shapes. The first example demonstrates filling rectangles
with solid fill and the second example demonstrates filling with a
shading pattern.
Solid Fill (Black/White)
To print a 900 by 1500 Unit black rule (3 inches by 5 inches at
300 units-per-inch), then “white fill” a small area inside the black
rectangle, perform the following steps.
1 Position the cursor:
2 Specify the width of the rule:
3 Specify the height of the rule:
4 Print the rule:
5 Position the cursor inside the rectangular area:
6 Specify the width and height for the smaller white fill rectangular
area:
?*p300x400Y This moves the cursor to PCL Unit
position (300, 400) within the PCL
coordinate system.
?*c900A This sets the rule width to 900 PCL Units
(3 inches at 300 units-per-inch).
?*c1500B This sets the rule height to 1500 PCL
Units (5 inches at 300 units-per-inch).
?*c0P This example prints a black filled
rectangular area.
?*p600x700Y
?*c300a600B