GetWhiteBalanceMin
Top  Previous  Next

Description

Returns the minimum value of the WhiteBalanceUB and WhiteBalanceVR properties.


Syntax


[VB]
Value=objActiveDcam.GetWhiteBalanceMin()


[C/C++]
HRESULT GetWhiteBalanceMin(long* pValue );


Data Types
[VB]

Return value: Long


Parameters
[C/C++]

pValue [out, retval]  
Pointer to the minimum white balance value  


Return Values


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

Example


This VB example uses the minimum and maximum white balance values to initialize slider controls:

Private Sub
 Form_Load()

Slider1.Min = ActiveDcam1.GetWhiteBalanceMin
Slider1.Max = ActiveDcam1.GetWhiteBalanceMax
Slider1.Value = ActiveDcam1.WhiteBalanceUB
Slider2.Min = ActiveDcam1.GetWhiteBalanceMin
Slider2.Max = ActiveDcam1.GetWhiteBalanceMax
Slider2.Value = ActiveDcam1.WhiteBalanceVR
End Sub


Remarks


If the currently selected camera doesn't support software white balance control, the method will generate an error.