Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public DeviceVideoSettings DeviceSettings { get; }

Property Value

Type Description
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.

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