7.5

Table Of Contents
BitmapWidth/BitmapHeight (function)
Returns the width or height, in inches, of a bitmap image resource, at the specified resolution.
Syntax
Bitmapwidth( name, resolution ) measure value
Bitmapheight( name, resolution ) measure value
Argument
name
String value that specifies the name of the bitmap image resource.
resolution
Integer value that specifies the resolution at which you want to measure the width or height of the bitmap.
Code Sample Example
This example sets the variable maxwidth to the width of the bitmap 'fingerprint' at a resolution of 150 DPI, and the variable
maxheight to the height of the same bitmap at a resolution of 200 DPI.
Example
&maxwidth := bitmapwidth( 'fingerprint', 150 )
&maxheight := bitmapheight( 'fingerprint', 200 )
Cos (function)
Returns the cosine value of the specified angle.
Syntax
cos( value ) measure value
Argument
value
Measure value specifying the angle whose cosine is returned.
Code Sample Example
This example displays a sinusoidal graph.
Example
moveto(0,0)
define(&i,integer,0)
for(&i,1,10,360)
lineto(cos(inttofloat((&i)/ 4)),sin(inttofloat(&i)))
endfor()
closepath()
©2010 Objectif Lune Inc - 531 -