BklightComp Property
Description
Returns or sets the backlight compensation 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. BklightComp
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
BklightCompDefaultValue property, BklightCompMinValue property, BklightCompMaxValue property, BklightCompStepDelta property, IfAutoBklightComp property
Sample
A JavaScript sample is provided.
<script language="javascript">
function btnManageBklightComp_onclick() {
Webcam.OpenSource();
BklightComp = Webcam.BklightComp; //get the backlight compensation value
BklightCompMinValue = Webcam.BklightCompMinValue;//get the minimum backlight compensation value
BklightCompMaxValue = Webcam.BklightCompMaxValue;//get the maximum backlight compensation value
BklightCompDefaultValue = Webcam.BklightCompDefaultValue;//get the default backlight compensation value
BklightCompStepDelta = Webcam.BklightCompStepDelta;//get the backlight compensation step delta
Webcam.BklightComp = 1;//change the backlight compensation value to 1
BklightComp = Webcam.BklightComp; //get the backlight compensation value
}
</script>
Copyright © 2012 Dynamsoft Corporation.All Rights Reserved.
