Brother HL-Series Technical Reference Manual page 277

Hide thumbs Also See for HL-Series:
Table of Contents

Advertisement

Revision C 16/01/96
IR - Input Relative Scaling Points
IR [ P1x, P1y [, P2x, P2y]][;]
P1x ; x-coordinate of P1
P2x ; x-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
SC [ X
, X
min
SC [ X
, X
min
X
; X coordinate of P1
min
Y
; Y coordinate of P1
min
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
; number of graphics units per user unit on the x-axis.
factor
Y
; number of graphics units per user unit on the y-axis.
factor
• 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:
• All coordinates are in user units.
• Coordinate values for X
• X
, Y
min
min
X
and Y
max
• X
must be different from X
min
• 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.
P1y ; y-coordinate of P1
P2y ; y-coordinate of P2
, X
, Y
, Y
[, type ]] [;] (Type = 0)
max
min
max
, type [ left, bottom]] [;] ( Type =1)
, Y
, Y
max
min
max
, Y
Y
factor
min
factor
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.
, X
, Y
min
max
, X
and Y
specify the range of the X- and Y-axes. X
max
max
should be P2.
max
, and Y
max
Chapter 8 "HP-GL2" 11
[, type ]] [;] ( Type = 2)
X
; X coordinate of P2
max
Y
; Y coordinate of P2
max
, and Y
are given as real numbers.
min
max
must be different from Y
min
and Y
value should be P1 and
min
min
.
max

Advertisement

Table of Contents
loading

Table of Contents