Click or drag to resize
Accord.NET (logo)

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
)
Request Example View Source

Parameters

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: Boolean
Returns true on sucee or false otherwise.
Exceptions
ExceptionCondition
ArgumentExceptionVideo source is not specified - device moniker is not set.
ApplicationExceptionFailed creating device object for moniker.
NotSupportedExceptionThe video source does not support camera control.
See Also