Brightness Property
Description
Returns or sets the brightness values available within the Source. This is a runtime property.
| ActiveX Edition | Plug-in Edition | Mac Edition |
|---|---|---|
| Since V3.0 | Since V4.0 | Since V6.4 |
Data type
float
Syntax
ObjectName. Brightness
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.
Sample
A JavaScript sample is provided.
<script language="javascript">
function btnManageBrightness_onclick() {
Webcam.OpenSource();
Brightness = Webcam.Brightness; //get the Brightness value
BrightnessMinValue = Webcam.BrightnessMinValue;//get the minimum Brightness value
BrightnessMaxValue = Webcam.BrightnessMaxValue;//get the maximum Brightness value
BrightnessDefaultValue = Webcam.BrightnessDefaultValue;//get the default Brightness value
BrightnessStepDelta = Webcam.BrightnessStepDelta;//get the Brightness step delta
Webcam.Brightness = 1;//change the Brightness value to 1
Brightness = Webcam.Brightness; //get the Brightness value
}
</script>
Copyright © 2012 Dynamsoft Corporation.All Rights Reserved.
