objActiveDcam.Gain [= Value] [C/C++]
HRESULT get_Gain( long *pGain );
HRESULT put_Gain( long Gain );
Data Type [VB]
Pointer to the current gain value
The gain value to be set
The gain control is not available for the selected camera
The value is out of range
The following VB example demonstrates the use of a scroll control for real-time adjustment of the camera's gain.
Private SubForm_Load() ActiveDcam1.Acquire=True HScroll1.Value = ActiveDcam1.Gain
HScroll1.Min = ActiveDcam1.GetGainMin
HScroll1.Max = ActiveDcam1.GetGainMax
Private SubHScroll1_Scroll() ActiveDcam1.Gain = HScroll1.Value End Sub
This property changes the camera's video signal amplification. The valid property range is reported by the GetGainMin and GetGainMax methods. Note that the property is available only if the currently selected camera supports software gain control.