GetWhiteShadingMax
Top  Previous  Next

Description

Returns the maximum value of the WhiteShading color components.


Syntax


[VB]
Value=objActiveDcam.GetWhiteShadingMax()


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


Data Types
[VB]

Return value: Long


Parameters
[C/C++]

pValue [out, retval]  
Pointer to the maximum white shaidng value  


Return Values


S_OK  
Success  
E_FAIL  
The white shading 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
Slider3.Max = ActiveDcam1.GetWhiteBalanceMax
Slider3.Value = ActiveDcam1.WhiteBalanceVR
End Sub

 

Remarks


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