WhiteShadingControl
Top  Previous  Next

Description

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

-1 - Off  
   The white shading control is disabled  
0 - Manual  
The white balance levels is controlled by the value of the WhiteShading property  
1 - Auto  
The camera controls the white shading by itself continuously  
2 - One push  
The camera sets the optimal white shading levels by itself and returns to the manual mode  


Syntax


[VB]
objActiveDcam.WhiteShadingControl [= Value]


[C/C++]
HRESULT get_WhiteShadingControl( short *pWhiteShadingControl );
HRESULT put_WhiteShadingControl( short WhiteShadingControl );



Data Type
[VB]

Integer

Parameters
[C/C++]

pWhiteShadingControl [out, retval]  
Pointer to the current white balance control mode  
WhiteShadingControl [in]  
The white balance control mode to be set  

Return Values


S_OK  
Success  
E_FAIL  
The white balance 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 white shading control.

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

ActiveDcam1.WhiteShadingControl = 1
Else

ActiveDcam1.WhiteShadingControl = 0
End If

End Sub

 

Remarks


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