The leading provider of version control solutions and TWAIN SDKs
  • Contact us









Gain Property

Description

Returns or sets the gain value available within the Source. This is a runtime property.

ActiveX Edition Plug-in Edition Mac Edition
Since V8.0 Since V8.0 Not Supported

Data type

Long.

Syntax

ObjectName. Gain


Remarks

Using this property after calling OpenSource() method and before calling AcquireImage().

When an error occurs and IfThrowException property is TRUE, an exception will be thrown. Check ErrorCode property and ErrorString property for error information.


See also

GainMinValue property, GainMaxValue property, GainStepDelta property, GainDefaultValue property, IfAutoGain property

Sample

A JavaScript sample is provided.

<script language="javascript">

	function btnManageGain_onclick() {

            Webcam.OpenSource(); 

            Gain = Webcam.Gain;	//get the Gain value
            GainMinValue = Webcam.GainMinValue;//get the minimum Gain value
            GainMaxValue = Webcam.GainMaxValue;//get the maximum Gain value
            GainDefaultValue = Webcam.GainDefaultValue;//get the default Gain value
            GainStepDelta = Webcam.GainStepDelta;//get the Gain step delta
	
            Webcam.Gain = 1;//change the Gain value to 1
            Gain = Webcam.Gain;	//get the Gain value

	}

</script>