7.6

Table Of Contents
Code Sample Example
This example creates the alias 'photo' that refers to the resource file c:\images\employees\JAdler.bmp.
Example
instream external photo
c:\images\employees\JAdler.bmp
endinstream()
%You can then reference the resource using the alias
showbitmap('photo',72,1,1)
LineTo/RLineTo (procedure)
Draws a line starting from the current point up to the specified coordinates.
Syntax
lineto( x, y )
Arguments
x, y
Measure values representing the horizontal/vertical position, in inches, of the ending point of the line. When using rlineto,
these values are relative to the current point of origin. When using lineto, they are absolute values.
Code Sample Example
This example draws an empty triangle with a blue outline.
Example
setstrokecolor([100,100,0,0]) %Set pen colour to blue
moveto(1,1) %Set starting point
lineto(1.5,2) %Draw first line
lineto(0.5,2) %Draw second line
closepath() %Close shape
stroke() %Draw shape
©2010 Objectif Lune Inc - 427 -