getImScroll
Top  Previous  Next

getImScroll ( integer Image, integer& X0, integer& Y0 )

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

Parameters
 
Image  
 
An integer between 1 and 99 specifying the number of the frame.  
 
X0, Y0  
 
Integer variables that return the pixel coordinates of the 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 retrieves the scrolling coordinates of the viewable area of the image:  
 
setCurDir("samples")  
loadIm (1,"sample14.iwd")  
getImScroll (1, x0, y0 )  
print "x0=", x0  
print "y0=", y0