GetGainMax
Top  Previous  Next

Description

Returns the maximum value allowed for the camera's gain.


Syntax


[VB]
Value=objActiveUSB.GetGainMax


[C/C++]
HRESULT GetGainMax( float* pValue );


Data Types
[VB]

Return value: Single


Parameters
[C/C++]

pValue [out, retval]  
Pointer to the maximum value of the feature  


Return Values


S_OK  
Success  
E_NOINTERFACE        
Feature does not exist or not available  
E_FAIL  
Failure to read the value  
 

Example


This VB example uses the minimum and maximum values to initialize the slider control:

Private Sub
 Form_Load()

Slider1.Min = ActiveUSB1.GetGainMin
Slider1.Max = ActiveUSB1.GetGainMax
Slider1.Value = ActiveUSB1.Gain
End Sub

 

Remarks


Note that this method is available only if the currently selected camera supports one of the following GenICam features: Gain, GainAbs, GainRaw.