|
VideoCaptureDeviceGetCameraPropertyRange Method
|
Gets the range and default value of a specified camera property.
Namespace:
Accord.Video.DirectShow
Assembly:
Accord.Video.DirectShow (in Accord.Video.DirectShow.dll) Version: 3.8.0
Syntax public bool GetCameraPropertyRange(
CameraControlProperty property,
out int minValue,
out int maxValue,
out int stepSize,
out int defaultValue,
out CameraControlFlags controlFlags
)
Public Function GetCameraPropertyRange (
property As CameraControlProperty,
<OutAttribute> ByRef minValue As Integer,
<OutAttribute> ByRef maxValue As Integer,
<OutAttribute> ByRef stepSize As Integer,
<OutAttribute> ByRef defaultValue As Integer,
<OutAttribute> ByRef controlFlags As CameraControlFlags
) As Boolean
Request Example
View SourceParameters
- property
- Type: Accord.Video.DirectShowCameraControlProperty
Specifies the property to query. - minValue
- Type: SystemInt32
Receives the minimum value of the property. - maxValue
- Type: SystemInt32
Receives the maximum value of the property. - stepSize
- Type: SystemInt32
Receives the step size for the property. - defaultValue
- Type: SystemInt32
Receives the default value of the property. - controlFlags
- Type: Accord.Video.DirectShowCameraControlFlags
Receives a member of the CameraControlFlags enumeration, indicating whether the property is controlled automatically or manually.
Return Value
Type:
BooleanReturns true on sucee or false otherwise.
Exceptions Exception | Condition |
---|
ArgumentException | Video source is not specified - device moniker is not set. |
ApplicationException | Failed creating device object for moniker. |
NotSupportedException | The video source does not support camera control. |
See Also