2001/10/02
CHAPTER 4 HP-GL/2 - 35
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, irrespective of whether the pen is up or 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 ';', which is the HP-GL/2 terminator. You cannot use it as a symbol.
•
The current character size, slant and direction settings affect the way the symbol is drawn.
•
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 ( although any other integers will be interpreted as 1.)
•
If
n
is 0 the white pen is selected. In this case drawing commands will have no effect, unless you are
plotting onto a dark background and transparency mode is off.
•
If
n
is 1 the black pen is selected and printing can proceed normally. Use SP1 at the start of HP-GL/2
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, arcs, circles and edges of
polygons, rectangles and wedges.
•
The screen type must have the value 0, 1, 2, 21, 22 or 130. 0 = no screen, 1 = shaded fill ( one of eight gray
scales ), 2 = raster fill as defined by the RF command, 21 = a pre-defined PCL cross-hatch pattern 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: 0 means that the fill will appear in the colour of pen number 1, 1
means it should appear in the current pen's colour.
Summary of Contents for HL-1250
Page 15: ...2001 10 02 CHAPTER 1 INTRODUCTION 1 CHAPTER 1 INTRODUCTION ...
Page 20: ...2001 10 02 CHAPTER 1 INTRODUCTION 6 ...
Page 21: ...2001 10 02 CHAPTER 2 PCL 1 CHAPTER 2 PCL PRINTER CONTROL LANGUAGE ...
Page 59: ...2001 10 02 CHAPTER 2 PCL 39 ...
Page 76: ...2001 10 02 CHAPTER 2 PCL 56 ...
Page 104: ...2001 10 02 CHAPTER 2 PCL 84 71 71 Lines picture Same as above ...
Page 109: ...2001 10 02 CHAPTER 2 PCL 89 ...
Page 123: ...2001 10 02 CHAPTER 2 PCL 103 ...
Page 131: ...2001 10 02 CHAPTER 3 PCL5C 1 CHAPTER 3 PCL5C ...
Page 149: ...2001 10 02 CHAPTER 4 HP GL 2 1 CHAPTER 4 HP GL 2 GRAPHICS LANGUAGE ...
Page 199: ...2001 10 02 CHAPTER 4 HP GL 2 51 ...
Page 204: ...2001 10 02 CHAPTER 4 HP GL 2 56 ...
Page 205: ...2001 10 02 CHAPTER 5 PJL 1 CHAPTER 5 PJL PRINTER JOB LANGUAGE ...
Page 248: ...2001 10 02 CHAPTER 5 PJL 44 ...
Page 263: ...2001 10 02 CHAPTER 5 PJL 59 ...
Page 264: ...2001 10 02 CHAPTER 6 EPSON 1 CHAPTER 6 EPSON FX 850 ...
Page 286: ...2001 10 02 CHAPTER 6 EPSON 23 LPRINT CHR 27 CHR 37 CHR 1 CHR 0 Select downloaded characters ...
Page 290: ...2001 10 02 CHAPTER 6 EPSON 27 Sample 12 ...
Page 292: ...2001 10 02 CHAPTER 6 EPSON 29 Sample 14 ...
Page 294: ...2001 10 02 CHAPTER 7 IBM PROPRINTER 1 CHAPTER 7 IBM PROPRINTER XL ...
Page 315: ...2001 10 02 CHAPTER 7 IBM PROPRINTER 22 ...
Page 316: ...2001 10 02 CHAPTER 8 BAR CODE CONTROL 1 CHAPTER 8 BAR CODE CONTROL ...
Page 326: ...2001 10 02 CHAPTER 9 HP GL 1 CHAPTER 9 HP GL GRAPHICS LANGUAGE ...
Page 353: ...10 5 2001 APPENDIX A COMPARISON LIST 1 APPENDIX A COMPARISON LIST ...
Page 391: ...10 5 2001 APPENDIX A COMPARISON LIST 39 AUTOSKIP ON OFF ON OFF ON OFF ON OFF ...