Brother HL-2170W User Manual
Page 185
CHAPTER 4 HP-GL/2 - 34
PW - Pen width
PW [w, [,p]] [;]
w ; width
p ; pen
This command specifies the width of the pen.
Pen width can either be specified as a fixed width in millimeters ( the default ) or relative to the distance
between the scaling points P1 and P2.
If a width of zero is specified the thinnest width possible ( 1 dot wide ) is set.
Metric widths are scaled by the ratio of the PCL picture frame to the HP-GL/2 plot size. If the ratio for the
two axes is different, the smaller one is used. If this is less than the thinnest width available then a width
of 1 dot is selected.
If no pen number is specified the new width applies to both pens.
If a pen number other than 0 or 1 is specified the command is ignored. There are six pens in the
specification.
If no parameters are specified the pen width defaults to either 0.35mm or 0.1% of the distance from P1 to P2
according to the current width unit setting.
Pen width settings are not affected by a DF command.
Pen width does not set the width of the lines that make up the characters in a label.
A PW command remains in effect until another PW command is issued, until a WU command is used or
until the printer is initialized with an IN command.
10 '-Pen Width-
20 WIDTH "LPT1:", 255
30 LPRINT CHR$(27); "E";
40 LPRINT CHR$(27); "%0B";
50 LPRINT "IN;SP1;";
60 LPRINT "PA3500,2500;PW1.5;"
70 LPRINT "PD4500,2800,4500,1800,3500,1500,3500,2500;"
80 LPRINT "PW0.8;PD2300,2900,2300,1900,3500,1500;"
90 LPRINT "PW0.5;PU2300,2900;PD3300,3200,4500,2800;"
100 LPRINT "PW0.25:PU4500,1800;PD3500,2100;"
110 LPRINT CHR$(27); "%0A";
120 LPRINT CHR$(27); "E";
130 END
RF - Raster fill definition
RF [ i [, w, h, p [,...]]] [;]
i : index
w : width
p: pen number
h : height
This command defines a rectangular pattern which may be used to fill the area.
i is the index number of the pattern that is to be defined and must be in the range 1-8. 8 patterns can exist
concurrently.
If used with an index parameter and no others, the pattern is defined as a solid black fill.
w is the width in pixels of the pattern that is to be defined and must be in the range 1- 255.
h is the height in pixels of the pattern that is to be defined an must be in the range 1 - 255.
p stands for a pixel in the defined fill. p = 0 signifies a white pixel, p>0 signifies a black pixel. The
number of pixels specified should equal the number of pixels in the fill pattern (w, h). The parameter
defines successive pixels' colors from left to right, top to bottom. If you do not supply enough pixel
parameters the trailing pixels default to white.
Use the FT command to select a fill type from those defined with the RF command.
Omitting parameters sets all raster fill patterns to solid fill.
- 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