|
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
)
Public Function SetCameraProperty (
property As CameraControlProperty,
value As Integer,
controlFlags As CameraControlFlags
) As Boolean
Request Example
View SourceParameters
- 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:
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