getImWidth
Top  Previous  Next

val = getImWidth ( integer Image )

Use this function to retrieve the horizontal size of an image in pixels.

Parameters
 
Image  
 
An integer between 0 and 116 specifying the frame number of the image. A value of 0 represents the DMA memory buffer of the video device. Values in the range of 100-116 correspond to hidden frames.  
 
Return value

The width of the image in pixels.  
 
Error flags

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

This set of statements retrieves the width and height of a sample image and prints the information in the terminal window:  
 
grabIm (1)  
x=getImWidth ( 1)  
y=getImHeight (1)  
print "width=", x  
print "height=", y