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









Gamma Property

Description

Returns or sets the gamma 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. Gamma


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

GammaMinValue property, GammaMaxValue property, GammaStepDelta property, GammaDefaultValue property, IfAutoGamma property

Sample

A JavaScript sample is provided.

<script language="javascript">

	function btnManageGamma_onclick() {

            Webcam.OpenSource(); 

            Gamma = Webcam.Gamma;	//get the Gamma value
            GammaMinValue = Webcam.GammaMinValue;//get the minimum Gamma value
            GammaMaxValue = Webcam.GammaMaxValue;//get the maximum Gamma value
            GammaDefaultValue = Webcam.GammaDefaultValue;//get the default Gamma value
            GammaStepDelta = Webcam.GammaStepDelta;//get the Gamma step delta
	
            Webcam.Gamma = 1;//change the Gamma value to 1
            Gamma = Webcam.Gamma;	//get the Gamma value

	}

</script>