USING THE FILL WEDGE COMMAND The Fill Wedge ( WG ) command, defines and fills a wedge using the current pen, the current line and fill types. The WG command includes an automatic pen down, and when the operation is complete, the original pen location and up/down status are restored. The syntax for the WG command is as follows: WG radius,start angle,sweep angle,[chord angle]; For more information see the Updated PCL 5 Printer Language Technical Reference Manual. 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. SC-3000,3000,-2000,2000,1; Sets up user scaling, with P1 located at (- 3000,-2000), and P2 being (3000,2000). The 1 indicates isotropic scaling. PA0,0;FT3,75,45;WG-1000,90,180; Enters absolute plotting mode and moves to user-unit position (0,0). Then selects fill type 3 (parallel lines), with 75 user-units between lines and the lines slanted 45 degrees. Then fills a wedge with the current fill pattern; using a radius of 1000 user-units, a starting angle of 90 degrees and a sweep angle of 180 degrees. The zero-degree reference point is on the left side of the circle (indicated by the negative radius parameter [-1000]). EW-1000,90,180; Outlines (edges) the wedge just drawn with the commands above. FT4,60,45;WG-1000,330,120; Selects fill type 4 (cross-hatching), specifying 60 user-units between lines with the lines tilted at a 45 degree angle. Fills a wedge that has the same radius and center point as the one above, but with a starting angle of 330 degrees, and a sweep angle of 120 degrees. EW-1000,330,120; Edges the wedge just drawn above. PR-60,110;FT1; Specifies relative plotting and moves the pen 60 user-units to the left and 110 units up. Then selects fill type 1 (solid black). WG-1000,270,60; Fills a wedge, using the fill type just specified above, with a radius of 1000 user-units, a start angle of 270 degrees, and a sweep angle of 60 degrees. EW-1000,270,60; Edges the wedge just drawn. 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/lj2003.asc, 4KB, , updated: 1993/11/15 16:19, local time: 2017/12/16 11:02,
|©2017 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.piclist.com/techref/language/pcl/lj2003.asc"> language pcl lj2003</A>
|Did you find what you needed?|
PICList 2017 contributors:
o List host: MIT, Site host massmind.org, Top posters @20171216 RussellMc, Van Horn, David, Sean Breheny, James Cameron, alan.b.pearce, IVP, Neil, Bob Blick, David C Brown, John Gardner,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!