setImScroll
Top  Previous  Next

setImScroll ( integer Image, integer X, integer Y )

Use this function to scroll the viewable area of an image in the image frame.

Parameters
 
Image  
 
An integer between 1 and 99 specifying the number of the frame.  
 
X, Y  
 
Positive integers specifying the pixel coordinates of the top left origin of the viewable area of the image  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  
 
Example

This set of statements continuously pans the image in its frame:  
 
grabIm(1)  
setImZoom(1,2)  
For x=0 to 300  
setImScroll(1,x,0)  
Next  
For y=0 to 200  
setImScroll(1,x,y)  
Next  
For z=200 to 0  
setImScroll(1,z,z)  
Next  
 
Remark

If the specified coordinates exceed the allowable values for the view origin they will be automatically readjusted to the maximum allowable values.