GainRaw
Top  Previous  Next

Description

Returns or sets the row value of the gain. This property is deprecated and replaced by Gain.


Syntax


[VB]
objActiveGige.GainRaw [= Value]


[C/C++]
HRESULT get_GainRaw( long *pValue );
HRESULT put_GainRaw( long Value );



Data Type
[VB]

Long

Parameters
[C/C++]

pValue [out,retval]  
Pointer to the current gain value  
Value [in]  
The gain value to be set  


Return Values


S_OK  
Success  
E_NOINTERFACE        
The feature is not available for the selected camera  
E_INVALIDARG  
The value is out of range  
E_FAIL  
Failure to set the feature value  


Example


The following VB example demonstrates the use of a scroll control for real-time adjustment of the camera's gain.

Private Sub
 Form_Load()

ActiveGige1.Acquire=
True

HScroll1.Value = ActiveGige1.GainRaw
HScroll1.Min = ActiveGige1.GetFeatureMin("GainRaw")
HScroll1.Max = ActiveGige1.GetFeatureMax("GainRaw")
End Sub


Private Sub
 HScroll1_Scroll()

ActiveGige1.GainRaw = HScroll1.Value

End Sub

 

Remarks


This property changes the camera's video signal amplification. The valid property range can be retrieved by the GetFeatureMin and GetFeatureMax methods.

Note that the property is available only if the currently selected camera supports the GainRaw feature per GenICam standard.