Iris
Top  Previous  Next

Description

Returns or sets the row value of the iris


Syntax


[VB]
objActiveDcam.Iris [= Value]


[C/C++]
HRESULT get_Iris( long *pIris );
HRESULT put_Iris( long Iris );



Data Type
[VB]

Long

Parameters
[C/C++]

pIris [out,retval]  
Pointer to the current iris value  
Iris [in]  
The iris value to be set  


Return Values


S_OK  
Success  
E_FAIL  
The iris control is not available for the selected camera  
E_INVALIDARG  
The value is out of range  
 

Example


The following VB example demonstrates the use of a scroll control for real-time adjustment of the camera's iris.

Private Sub
 Form_Load()

ActiveDcam1.Acquire=
True

HScroll1.Value = ActiveDcam1.Iris
HScroll1.Min = ActiveDcam1.GetIrisMin
HScroll1.Max = ActiveDcam1.GetIrisMax
End Sub


Private Sub
 HScroll1_Scroll()

ActiveDcam1.Iris = HScroll1.Value

End Sub

 

Remarks


This property changes the opening of the lens diaphragm. The valid property range is reported by the GetIrisMin and GetIrisMax methods. Note that the property is available only if the currently selected camera is equipped with a motorized lens and supports software iris control.