call
Top  Previous  Next

call ( string Command [, integer File = 0 ] )

Use this function to execute a specified series of statements.

Parameters
 
Command  
 
A string containing one or several statements of ImageWarp scripting language or the name of the script file to be executed.  
 
File  
 
An optional boolean integer specifying whether the Command parameter contains a series of script commands or the script file name:  
FALSE=0 – Command contains one or several statements to be executed.  
TRUE=1 – Command contains a name of the script file whose statements will be executed.  
Default value: FALSE  
 
Error flags
 
ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  
 
Example
 
This set of statements uses the call operator to execute two functions placed into a command string:  
 
do  
command="sobel(0,100,0) \n threshold (100,2,0,128)"  
grabim(0)  
emphasize(0,1,10)  
call (command)  
loop