ZoomForCam Property
Description
Returns or sets the zoom value for camera 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. ZoomForCam
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
ZoomForCamMinValue property, ZoomForCamMaxValue property, ZoomForCamStepDelta property, ZoomForCamDefaultValue property, IfAutoZoomForCam property
Sample
A JavaScript sample is provided.
<script language="javascript">
function btnManageZoomForCam_onclick() {
Webcam.OpenSource();
ZoomForCam = Webcam.ZoomForCam; //get the ZoomForCam value
ZoomForCamMinValue = Webcam.ZoomForCamMinValue;//get the minimum ZoomForCam value
ZoomForCamMaxValue = Webcam.ZoomForCamMaxValue;//get the maximum ZoomForCam value
ZoomForCamDefaultValue = Webcam.ZoomForCamDefaultValue;//get the default ZoomForCam value
ZoomForCamStepDelta = Webcam.ZoomForCamStepDelta;//get the ZoomForCam step delta
Webcam.ZoomForCam = 1;//change the ZoomForCam value to 1
ZoomForCam = Webcam.ZoomForCam; //get the ZoomForCam value
}
</script>
Copyright © 2012 Dynamsoft Corporation.All Rights Reserved.
