Sharpness Property
Description
Returns or sets the sharpness 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. Sharpness
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
SharpnessMinValue property, SharpnessMaxValue property, SharpnessStepDelta property, SharpnessDefaultValue property, IfAutoSharpness property
Sample
A JavaScript sample is provided.
<script language="javascript">
function btnManageSharpness_onclick() {
Webcam.OpenSource();
Sharpness = Webcam.Sharpness; //get the Sharpness value
SharpnessMinValue = Webcam.SharpnessMinValue;//get the minimum Sharpness value
SharpnessMaxValue = Webcam.SharpnessMaxValue;//get the maximum Sharpness value
SharpnessDefaultValue = Webcam.SharpnessDefaultValue;//get the default Sharpness value
SharpnessStepDelta = Webcam.SharpnessStepDelta;//get the Sharpness step delta
Webcam.Sharpness = 1;//change the Sharpness value to 1
Sharpness = Webcam.Sharpness; //get the Sharpness value
}
</script>
Copyright © 2012 Dynamsoft Corporation.All Rights Reserved.
