The polygon group – Brother HL-2170W User Manual
Page 176
CHAPTER 4 HP-GL/2 - 25
7.4.
The polygon group
Instruction Function
PM Polygon
Mode
EA
Edge Absolute Rectangle
ER
Edge Relative Rectangle
EP Edge
Polygon
EW Edge
Wedge
RA
Fill Absolute Rectangle
RR
Fill Relative Rectangle
WG Fill
Wedge
FP Fill
Polygon
PM - Polygon mode
PM [ ms ] [;]
This command is used for entering and leaving polygon mode, the mode that allows you to access the
polygon buffer.
When in polygon mode you can use any of the vector group commands to define the vertices of a polygon.
The following commands can be used;
DF, IN, AA, AR, AT, BR, BZ, CI, PA, PD, PE, PR, PU, RT
The polygon you have defined is not printed until you exit polygon mode and fill or edge the polygon.
ms, the mode status, can have the value 0, 1 or 2. If ms = 0 the command empties the polygon buffer and
enters polygon mode. A value of 1 closes the current polygon and remains in polygon mode. All
commands sent following a PM1 before a PM2 or a further PM1 are used to build one sub-polygon. A
value of 2 closes the current polygon or sub-polygon and exits polygon mode.
Having exited polygon mode you can use the EP and FP commands to edge or fill the polygons you have
defined.
The EP command only draws between points defined when the pen was in the down position.
The FP command fills the area between the polygon vertices irrespective of whether the pen was up or down
when the polygon was defined.
The first point in the polygon buffer is the pen position when the PM0 command was invoked.
The next pen position specified after a PM1 command becomes the first vertex of the next sub-polygon.
When plotting a polygon the pen always moves to the first point in the up position.
Using the command with no parameters clears the polygon buffer and enters polygon mode. This is
equivalent to the PM0; command.
If a DF or IN command is invoked in the polygon mode, the printer quits polygon mode, clears the
polygon buffer and executes the subsequent command.
If an ESC E reset command is invoked while the printer is in polygon mode, the printer quits polygon
mode, clears the polygon buffer, exits HP-GL/2 and ejects the page.
EA - Edge rectangle absolute
EA X, Y[;]
X ; X coordinate of opposite corner for the rectangle
Y ; Y coordinate of opposite corner for the rectangle
X and Y coordinates are absolute coordinates in current units.
Plots the rectangle formed by the current position and the opposite corner specified by X and Y.
After plotting, the cursor returns to its point of origin and pen up/down status remains as selected.
Plotting is performed whether the pen is up or down.
- HL-1670N HL-6050D HL 5250DN HL-5070N HL-2460 HL-6050DN HL-2150N HL 2700CN HL-2130 HL-S7000DN HL-3040CN HL 1650 HL-6050 HL-5240 HL-5240L HL-1470N HL 3070CW HL 5170DN HL-3450CN HL-3140CW HL 5470DW HL-5140 HL-5440D HL-7050 HL-2240 HL-5040 HL-4070CDW HL-1870N HL-1110 HL-1850 HL 4150CDN HL-8050N HL 5450DN HL 5370DW HL-5050 HL-2140 HL 1270N HL-2600CN HL-6180DW HL-5350DN HL-4050CDN HL-2070N HL-3260N HL-5150D HL-5280DW HL-3170CDW HL-4570CDW HL-3150CDW HL 4040CN HL-4140CN HL 2240D HL 2270DW HL-1250 HL-7050N HL 5340D HL-2250DN HL-1450 HL-L9200CDWT HL-1112 HL-5270DN HL-5450DNT HL-L8250CDN HL 4570CDWT HL-5380DN HL-6180DWT HL-L8350CDW HL-4040CDN HL-L8350CDWT HL-2230 HL-5470DWT HL 2220 HL-1110E HL-1112E