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









Pan Property

Description

Returns or sets the pan 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. Pan


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

PanMinValue property, PanMaxValue property, PanStepDelta property, PanDefaultValue property, IfAutoPan property

Sample

A JavaScript sample is provided.

<script language="javascript">

	function btnManagePan_onclick() {

            Webcam.OpenSource(); 

            Pan = Webcam.Pan;	//get the Pan value
            PanMinValue = Webcam.PanMinValue;//get the minimum Pan value
            PanMaxValue = Webcam.PanMaxValue;//get the maximum Pan value
            PanDefaultValue = Webcam.PanDefaultValue;//get the default Pan value
            PanStepDelta = Webcam.PanStepDelta;//get the Pan step delta
	
            Webcam.Pan = 1;//change the Pan value to 1
            Pan = Webcam.Pan;	//get the Pan value

	}

</script>