Click or drag to resize
Accord.NET (logo)

VideoCaptureDeviceSetCameraProperty Method

Sets a specified property on the camera.

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

Parameters

property
Type: Accord.Video.DirectShowCameraControlProperty
Specifies the property to set.
value
Type: SystemInt32
Specifies the new value of the property.
controlFlags
Type: Accord.Video.DirectShowCameraControlFlags
Specifies the desired control setting.

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