GetLevels
Top  Previous  Next

Description

Returns the array containing the current levels for the Window/Level operation.


Syntax


[VB]
value = objActiveDcam.GetLevels 


[C/C++]
HRESULT SetROI( VARIANT* pLevels );


Data Types
[VB]

Return value: Variant (Array)

Parameters
[C/C++]

pLevels [out,retval]  
Pointer to the SAFEARRAY containing the current levels for the Window/Level operation:  
ROI [0] - current minR level  
ROI [1] - current maxR level  
ROI [2] - current minG level  
ROI [3] - current maxG level  
ROI [4] - current minB level  
ROI [5] - current maxB level  

Return Values


S_OK  
Success  
E_FAIL  
Failure.  

Example

The following VB example displays the currently selected levels for a monochrome image:

Levels=ActiveDcam1.GetLevels
MsgBox "Min: ", Levels[0], "Max: ", Levels[1]


Remarks


For more information on the Window/Level parameters see SetLevels.