Back to Devexpress

CameraControl.DeviceSettings Property

wpf-devexpress-dot-xpf-dot-editors-dot-cameracontrol-fe73f3bc.md

latest2.1 KB
Original Source

CameraControl.DeviceSettings Property

Provides access to the settings of the currently used device. This is a dependency property.

Namespace : DevExpress.Xpf.Editors

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public DeviceVideoSettings DeviceSettings { get; }
vb
Public ReadOnly Property DeviceSettings As DeviceVideoSettings

Property Value

TypeDescription
DeviceVideoSettings

A DeviceVideoSettings object that comprises the settings of the currently used device.

|

Remarks

This property provides access to the global settings of the currently used camera device. These settings are written to the registry and thus, affect the quality of video captured in any other application that uses the same camera device.

You can change these video settings from code. For example, the code below changes the gamma and contrast settings.

csharp
Camera1.DeviceSettings.Gamma.Value = 90;
Camera1.DeviceSettings.Contrast.Value = 50;
vb
Camera1.DeviceSettings.Gamma.Value = 90
Camera1.DeviceSettings.Contrast.Value = 50

To change video settings at runtime, end-users can use the Settings button, which is displayed in the top right corner of the control (see the CameraControl.ShowSettingsButton link).

See Also

CameraControl Class

CameraControl Members

DevExpress.Xpf.Editors Namespace