ShutterControl
Top  Previous  Next

Description

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

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


Syntax


[VB]
objActiveDcam.ShutterControl [= Value]


[C/C++]
HRESULT get_ShutterControl( short *pShutterControl );
HRESULT put_ShutterControl( short ShutterControl );



Data Type
[VB]

Integer

Parameters
[C/C++]

pShutterControl [out, retval]  
Pointer to the current shutter control mode  
ShutterControl [in]  
The shutter control mode to be set  

Return Values


S_OK  
Success  
E_FAIL  
The shutter 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 shutter control.

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

ActiveDcam1.ShutterControl = 1
Else

ActiveDcam1.ShutterControl = 0
End If

End Sub

 

Remarks


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