Brother HL-1050 Technical Reference Manual page 179

Laser printer
Hide thumbs Also See for HL-1050:
Table of Contents

Advertisement

10 '--Raster Fill Definition==
20 WIDTH "LPT1:", 255
30 LPRINT CHR$(27); "E";
40 LPRINT CHR$(27); "%0B";
50 LPRINT "IN;SP1;";
60 LPRINT "PU5,5;PA3500,2500;"
70 LPRINT
"RF2,8,4,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,
0,;"
80 LPRINT "FT11,2;RR4000,800;EP;"
90 LPRINT CHR$(27); "%0A";
100 LPRINT CHR$(27); "E";
110 END
<Sample 43>
SM - Symbol mode
SM c[;]
c ; ASCII character or symbol code
• The command specifies the symbol to be drawn.
• The specified symbol will be drawn at the end of each vector,
down
when the PA, PR, PD, PU or PE instructions are used.
• Characters in the character code ranges 33 - 58, 60 - 126 and characters 161 and 254 can be used.
• Character code 59 stands for the ';',
• The current character size,
• Omitting the parameter cancels the symbol mode.
• On quitting symbol mode the original pen up/down state is restored.
SP - Select pen
SP [ n ] [;]
n ; pen number
• The command selects a pen for drawing.
• You must use this command before performing any drawing or filling commands.
• n should be either 0 or 1
• If n is 0 the white pen is selected.
plotting onto a dark background and transparency mode is off.
• If n is 1 the black pen is selected and printing can proceed normally.
programs.
• Invoking the command with no parameter is equivalent to SP0.
SV - Screened vectors
SV [ s [, option_1[, option_2]]] [;]
s : screen type
option_1 and option_2: dependent on the screen type
• This command selects the type of screening that will be applied to vectors,
polygons,
rectangles and wedges.
• The screen type must have the value 0, 1, 2, 21, 22 or 130.
gray scales ), 2 = raster fill as defined by the RF command,
and 130 = shaded fill ( one of sixty-four gray scales ).
• With screen type 1 option_1 specifies the percentage of shading (0-100): option_2 is ignored.
• With screen type 2 option_1 is used to specify the index number of the fill pattern created using the RF
command.
Option_2 is set to either 0 or 1:
1, 1 means it should appear in the current pen's colour.
which is the HP-GL/2 terminator.
slant and direction settings affect the way the symbol is drawn.
( although any other integers will be interpreted as 1.)
In this case drawing commands will have no effect,
0 means that the fill will appear in the colour of pen number
CHAPTER 4 HP-GL/2 - 35
irrespective of whether the pen is up or
You cannot use it as a symbol.
Use SP1 at the start of HP-GL/2
arcs,
circles and edges of
0 = no screen,
1 = shaded fill ( one of eight
21 = a pre-defined PCL cross-hatch pattern
2/19/04
unless you are

Advertisement

Table of Contents
loading

Table of Contents