Sharpness
Top  Previous  Next

Description

Returns or sets the row value of the sharpness


Syntax


[VB]
objActiveDcam.Sharpness [= Value]


[C/C++]
HRESULT get_Sharpness( long *pSharpness );
HRESULT put_Sharpness( long Sharpness );



Data Type
[VB]

Long

Parameters
[C/C++]

pSharpness [out,retval]  
Pointer to the current sharpness value  
Sharpness [in]  
The sharpness value to be set  


Return Values


S_OK  
Success  
E_FAIL  
The sharpness control is not available for the selected camera  
E_INVALIDARG  
The value is out of range  
 

Example


The following VB example demonstrates the use of a scroll control for real-time adjustment of the sharpness value.

Private Sub
 Form_Load()

ActiveDcam1.Acquire=
True

HScroll1.Value = ActiveDcam1.Sharpness
HScroll1.Min = ActiveDcam1.GetSharpnessMin
HScroll1.Max = ActiveDcam1.GetSharpnessMax
End Sub


Private Sub
 HScroll1_Scroll()

ActiveDcam1.Sharpness = HScroll1.Value

End Sub

 

Remarks


This property changes the sharpness of the video by modifying parameters of the camera's differential circuitry. The valid property range is reported by the GetSharpnessMin and GetSharpnessMax methods. Note that the property is available only if the currently selected camera supports software sharpness control.