7.5

Table Of Contents
width, height
Measure values specifying the width/height, in inches, the EPS occupies when it displays. Specifying a value of zero for one but
not both of the two dimensions scales the EPS to fit the non-zero dimension. Specifying both a width and a height scales the
EPS to the best fit possible with that width and height, while maintaining its aspect ratio. Specifying both a width and a height of
zero displays the EPS at its default resolution.
Code Sample Example
This example displays the EPS image ‘my_eps’, scaling it as necessary to fit a width of 4.5 inches.
Example
showeps('my_eps', 4.5, 0)
ShowLeftRight (procedure)
Displays a string of characters, in inches, using a specified width.
Syntax
showleftright( text, width )
Arguments
text
String value to be displayed.
width
Measure value representing the amount of horizontal space to use for displaying the string. showleftright adjusts the amount
of spaces between characters to insure the string fits exactly within the specified width.
Code Sample Example
This example shows how to fit strings of different sizes within the same box that has a width of 3 inches.
Example
margin(0,0)
rectstroke(0,0,3,3)
moveto(0,0.5)
showleftright('This fits well inside the box',3)
crlf(0.1599)
showleftright('But this one is a little more tight',3)
©2010 Objectif Lune Inc - 358 -