warp  
Top  Previous  Next

warp (integer Image, integer X0, integer Y0, integer X1, integer Y1 )

Use this function to apply the linear warp effect to an image. Warping changes an image so that some areas shrink and some grow as if the image is drawn on rubber that is being stretched. A specified serves as the axis for the warp process. Equivalent to using the Warp Tool.

Parameters

Image  
 
An integer between 1 and 116 specifying the image frame number. Values in the range of 100-116 correspond to hidden frames.  
 
X0, Y0  
 
Positive integers specifying the coordinates of the start point of the axis for linear warping.  
 
X1, Y1  
Positive integers specifying the coordinates of the endpoint of the axis for linear warping.  
 
Error flags

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

The following set of statements opens a sample image and applies the linear warping to it.  
 
setCurDir("samples")  
loadIm (1,"sample14.iwd")  
warp (1,100,100,300,300)