DRAWING FILLED RECTANGLES The Fill Rectangle Absolute ( RA ) and Fill Rectangle Relative ( RR ) commands, fill their rectangles with the default or current fill pattern. When you use these commands, the rectangle created does not have an edge. Therefore, if you want the rectangle to have an edge, you should use the edge or outline rectangle commands, Edge Polygon ( EP ). For more information see the PCL 5 Printer Language Technical Reference Manual. This example shows one rectangle with an edge and another without. LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT. EcE Resets the printer. Ec%0B Enters HP-GL/2 mode. IN; Initializes HP-GL/2 mode. SP1; Selects pen number 1, (black). Even though there is no physical pen, the SP command must be used to enable printing. PA0,0; Specifies absolute plotting and moves to location (0,0). FT3; Specifies a fill type of 3, (hatching - Parallel lines). RR1500,1000; Fills a rectangular shape with the currently active fill pattern. The lower left corner of the rectangle should be the current location (0,0), and the upper right corner should be 1500 plotter units (plu), in the X direction and 1000 plu in the Y direction from the starting location. EP; Draws an edge around the rectangle that was just drawn. Since the previous RR command leaves its definition in the polygon buffer (1500,1000), you do not need to specify the coordinates again. PR2000,0; Specifies relative plotting and moves the pen 2000 plu in the X direction from the current pen location. FT4,100,45; Specifies fill type number 4 (cross- hatching), sets the spacing to 100 plu between fill lines, and sets the fill line angle to 45 degrees. RR1500,1000; Fills a rectangle with the currently specified fill type. Using the current relative pen location of (0,0) as the lower left corner of the rectangle and a point (1500,1000) relative plu away for the upper right corner. 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.
|file: /Techref/language/pcl/lj1904.asc, 4KB, , updated: 1993/11/15 16:17, local time: 2018/12/19 06:14,
|©2018 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.sxlist.com/techref/language/pcl/lj1904.asc"> language pcl lj1904</A>
|Did you find what you needed?|
Welcome to sxlist.com!
& kind contributors
just like you!
Please don't rip/copy
Copies of the site on CD
are available at minimal cost.
Welcome to www.sxlist.com!