
Revision C 16/01/96
Chapter 8 "HP-GL2" 11
IR - Input Relative Scaling Points
IR [ P1x, P1y [, P2x, P2y]][;]
P1x ; x-coordinate of P1
P1y ; y-coordinate of P1
P2x ; x-coordinate of P2
P2y ; y-coordinate of P2
•
The coordinate values are percentages relative to the bottom left and top right hand corners of the picture
frame.
•
Coordinate values for P1x, P1y, P2x, and P2y are treated as clamped real numbers.
•
Using this instruction without parameters sets the scaling points (P1, P2) to their initial positions, the
bottom left and top right hand corners of the picture frame.
•
If P2x and P2y are omitted P2 is set to be in the same position relative to P1 that it was before the command
was invoked.
•
You can set P1 and P2 to be anywhere that the range of allowable coordinates permits. However, only parts
of resulting images that lie within the effective window will be printed.
•
The IR command remains in effect until another IR command, and IP command or an IN command is
used.
SC - Scale
<HP-GL/2>
SC
[ X
min
,
X
max
, Y
min
, Y
max
[, type ]] [;] (Type = 0)
SC [ X
min
,
X
max
, Y
min
, Y
max
,
type [ left, bottom]] [;] (Type =1)
SC [ X
min
, X
factor
, Y
min
Y
factor
[,
type ]] [;] (Type = 2)
X
min
; X coordinate of P1
X
max
; X coordinate of P2
Y
min
; Y coordinate of P1
Y
max
; Y coordinate of P2
Type ; type of scaling
Left ; percentage of unused space to be left to the left of the scaling area
bottom ; percentage of unused space to be left below the scaling area
X
factor
; number of graphics units per user unit on the x-axis.
Y
factor
; number of graphics units per user unit on the y-axis.
•
This command turns scaling on and establishes a user unit coordinate system. The coordinate system is
specified relative to the points P1 and P2. The origin need not necessarily be at P1. Three different types of
scaling are available.
•
The technical terms, user unit and graphics unit, as used in this manual are defined as follows:
User unit
: the unit of the coordinates set by the SC instruction.
Graphics unit
: the unit(1/1016 of an inch) of the coordinates not set by the SC instruction.
•
All coordinates are in user units.
•
Coordinate values for X
min
,
X
max
, Y
min
, and Y
max
are given as real numbers.
•
X
min
, Y
min
, X
max
and Y
max
specify the range of the X- and Y-axes. X
min
and Y
min
value should be P1 and
X
max
and Y
max
should be P2.
•
X
min
must be different from X
max
, and Y
min
must be different from Y
max
.
•
Using this instruction without a parameter field turns the scaling off.
•
Type can be 0, 1 or 2, which select scaling types known as anisotropic, isotropic and point factor scaling
respectively.
Содержание HL- SERIES
Страница 13: ...Revision A 16 01 96 Chapter 1 Introduction ...
Страница 16: ...Revision C 16 01 96 Chapter 2 PCL 1 Chapter 2 PCL ...
Страница 123: ...Revision C 16 01 96 Chapter 2 PCL 3 W width raster area 78 Y y offset raster 79 ...
Страница 124: ...Revision C 16 01 96 Chapter 3 PJL 1 Chapter 3 PJL Printer Job Language ...
Страница 180: ...Revision C 16 01 96 Chapter 4 Diablo 630 1 Chapter 4 Diablo 630 ...
Страница 200: ...Revision C 16 01 96 Chapter 5 EPSON FX 850 1 Chapter 5 EPSON FX 850 ...
Страница 237: ...Revision C 16 01 96 Chapter 6 IBM Proprinter XL 1 Chapter 6 IBM Proprinter XL ...
Страница 259: ...Revision C 16 01 96 Chapter 7 Bar Codes Control 1 Chapter 7 Bar Code Control ...
Страница 267: ...Revision C 16 01 96 Chapter 8 HP GL2 1 CHAPTER 8 HP GL 2 Graphics Language ...
Страница 280: ...Revision C 16 01 96 Chapter 8 HP GL2 14 220 END Sample 21 ...
Страница 328: ...Revision C 16 01 96 Chapter 9 HP GL 1 CHAPTER 9 HP GL Graphics Language ...
Страница 332: ...Revision C 16 01 96 Chapter 9 HP GL 5 1 3 2 Printing Area a b d c a b c d mm A4 4 5 5 5 Letter 6 5 5 5 Legal 6 5 5 5 ...
Страница 342: ...Revision C 16 01 96 Chapter 9 HP GL 15 Sample 68 ...
Страница 387: ...Revision C 16 01 96 APPENDIX A COMPALISON LIST 24 RESOLUTION 300 600 300 600 300 600 ...