IrisControl
Top  Previous  Next

Description

Returns or sets the iris control mode. The values from -1 to 2 correspond to the following modes:

-1 - Off  
   The iris control is disabled  
0 - Manual  
The iris level is controlled by the value of the Iris property  
1 - Auto  
The camera controls the iris level by itself continuously  
2 - One push  
The camera sets the optimal iris level by itself and returns to the manual mode  


Syntax


[VB]
objActiveDcam.IrisControl [= Value]


[C/C++]
HRESULT get_IrisControl( short *pIrisControl );
HRESULT put_IrisControl( short IrisControl );



Data Type
[VB]

Integer

Parameters
[C/C++]

pIrisControl [out, retval]  
Pointer to the current iris control mode  
IrisControl [in]  
The iris control mode to be set  

Return Values


S_OK  
Success  
E_FAIL  
The iris control is not available for the selected camera  
 

Example


The following VB example demonstrates the use of a checkbox to switch between the manual and automatic iris control.

Private Sub
 Check1_Click()
If
 Check1.Value = 1 
Then

ActiveDcam1.IrisControl = 1
Else

ActiveDcam1.IrisControl = 0
End If

End Sub

 

Remarks


The property is available only if the currently selected camera supports automatic iris control.