setImZoom
Top  Previous  Next

setImZoom ( integer Image, float Zoom )

Use this function to set the zoom factor of an image frame.

Parameters
 
Image  
 
An integer between 1 and 99 specifying the number of the frame.  
 
Zoom  
 
A floating value specifying the zoom factor of the image  
 
Error flags

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

This set of statements gradually increases the image zoom  
 
grabIm(1)  
setImPos(1,0,0,getImWidth(1)*4,getImHeight(1)*4)  
z=1.  
While z<4  
 z=z*1.1  
 wait(250)  
 setImZoom(1,z)  
Wend  
 
Remark

Note that this function does not change the content of the image, but only its appearance in the image frame. To change the actual size of the image, use the resize function.