Exposure Property
Description
Returns or sets the exposure 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. Exposure
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
ExposureMinValue property, ExposureMaxValue property, ExposureStepDelta property, ExposureDefaultValue property, IfAutoExposure property
Sample
A JavaScript sample is provided.
<script language="javascript">
function btnManageExposure_onclick() {
Webcam.OpenSource();
Exposure = Webcam.Exposure; //get the Exposure value
ExposureMinValue = Webcam.ExposureMinValue;//get the minimum Exposure value
ExposureMaxValue = Webcam.ExposureMaxValue;//get the maximum Exposure value
ExposureDefaultValue = Webcam.ExposureDefaultValue;//get the default Exposure value
ExposureStepDelta = Webcam.ExposureStepDelta;//get the Exposure step delta
Webcam.Exposure = 1; //change the Exposure value to 1
Exposure = Webcam.Exposure; //get the Exposure value
}
</script>
Copyright © 2012 Dynamsoft Corporation.All Rights Reserved.
