showHistogram
Top  Previous  Next

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

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

Parameters
 
Show  
 
An optional boolean integer specifying whether to show or hide the Histogram window. Must be one of the following values:  
 
FALSE=0 – hides the Histogram window.  
TRUE=1 – shows the Histogram window.  
Default value: TRUE  
 
Advanced  
 
An optional boolean integer specifying whether the Histogram should be displayed in the advanced mode. Must be one of the following values:  
FALSE=0 – sets the Histogram window to the basic view mode.  
TRUE=1 – sets the Histogram 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 histogram of it.  
 
GrabIm(1)  
showHistogram()  
do  
grabIm(1)  
loop  
 
Remark
 
For more information on the Histogram window refer to ImageWarp User's Guide.