Click or drag to resize
Accord.NET (logo)

VideoCaptureDeviceGetCameraProperty Method

Gets the current setting of a camera property.

Namespace:  Accord.Video.DirectShow
Assembly:  Accord.Video.DirectShow (in Accord.Video.DirectShow.dll) Version: 3.8.0
Syntax
public bool GetCameraProperty(
	CameraControlProperty property,
	out int value,
	out CameraControlFlags controlFlags
)
Request Example View Source

Parameters

property
Type: Accord.Video.DirectShowCameraControlProperty
Specifies the property to retrieve.
value
Type: SystemInt32
Receives the value of the property.
controlFlags
Type: Accord.Video.DirectShowCameraControlFlags
Receives the value indicating whether the setting is controlled manually or automatically

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