FILLING WEDGES AND CIRCLES The wedge commands, Edge Wedge (EW) and Fill Wedge (WG), use your current pen location as the center point of the wedge. You then specify the radius, the start angle, and the sweep angle to complete the wedge. The angles are measured counterclockwise, with zero at the 3 o-clock position. For more information see the PCL 5 Printer Language Technical Reference Manual. Syntax for the Edge Wedge command is: EW[radius],[start angle],[sweep angle]; 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. PA1400,2500; Selects absolute plotting mode and moves the pen to (1400,2500). WG600,150,120; Fills a wedge with radius 600 plotter units (plu), start angle 150 degrees, and sweep angle 120 degrees. Since no fill type was specified, the wedge is black (solid black is the default fill type). PA2300,2500;FT3,75,45; Specifies absolute plotting and moves to (2300,2500). Selects the fill type to be number 3 (hatching-parallel lines), with 75 plu between hatching lines, and hatching lines tilted at 45 degree angles. WG600,90,180; Fills a wedge with the current fill type, using a radius 600 plu, a start angle 90 degrees, and a sweep 180 degrees. FT1,0,0;WG600,270,60; Specifies a fill type of solid black and fills a wedge using the same center and radius as the previous wedge, but starts this wedge at 270 degrees with a sweep of 60 degrees. FT4,60,45;WG600,330,120; Specifies a fill type of number 4, (cross- hatching) with 60 plu between lines and the lines tilted at 45 degrees. Fills a wedge using the same center and radius as the previous two wedges, but starts this wedge at 330 degrees with a sweep of 120 degrees. PA3500,2500;WG400,0,360; Selects a new absolute plotting point and moves to it, (3500,2500) Creates a filled circle using the current fill type of number 4 (cross- hatching), and specifies a start angle 0 degrees with a 360 degree sweep. PA4500,2500;FT;WG400,0,360; Moves to (4500,2500) and begins absolute plotting. Selects a solid black fill to fill a wedge with a 400 plu radius, and sweep of 360 degrees, (a circle). Ec%0A Enters the 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/lj1877.asc, 5KB, , updated: 1993/11/15 17:11, local time: 2022/6/26 09:29,
|©2022 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.massmind.org/Techref/language/pcl/lj1877.asc"> language pcl lj1877</A>
|Did you find what you needed?|
Welcome to massmind.org!
Welcome to www.massmind.org!