showProfile
Top  Previous  Next

showProfile ( [ integer Show =1, integer Advanced =0 ] )

Use this function to show or hide the Line profile window. Equivalent to selecting Line profile from the View menu.

Parameters
 
Show  
 
An optional boolean integer specifying whether to show or hide the Line profile window. Must be one of the following values:  
 
FALSE=0 – hides the Line profile window.  
TRUE=1 – shows the Line profile window.  
Default value: TRUE  
 
Advanced  
 
An optional boolean integer specifying whether the Line profile should be displayed in the advanced mode. Must be one of the following values:  
 
FALSE=0 – sets the Line profile window to the basic view mode.  
TRUE=1 – sets the Line profile window to the advanced view mode.  
Default value: FALSE  
 
Error flags

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

Example


The following set of statements continuously captures an image and displays a live line profile of it.  
 
grabIm(1)  
showProfile()  
do  
grabIm(1)  
loop  
 
Remark
 
For more information on the Line profile window refer to ImageWarp User's Guide.