Skip to main content
ExposureControl class

Provides functionality for controlling the exposure settings on a capture device.

Syntax


var exposureControl = VideoDeviceController.ExposureControl;

public sealed class ExposureControl

Public NotInheritable Class ExposureControl

public ref class ExposureControl sealed 

Members

The ExposureControl class has these types of members:

Methods

The ExposureControl class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
SetAutoAsync Asynchronously enables or disable auto exposure.
SetValueAsync Asynchronously sets the exposure time.

 

Properties

The ExposureControl class has these properties.

PropertyAccess typeDescription

Auto

Read-only

Gets a value that indicates if auto exposure is enabled.

Max

Read-only

Gets the maximum exposure time.

Min

Read-only

Gets the minimum exposure time.

Step

Read-only

Gets the smallest exposure time increment supported by the capture device.

Supported

Read-only

Gets a value that specifies if the capture device supports the exposure control.

Value

Read-only

Gets the exposure time.

 

Remarks

The ExposureControl gives apps additional control over the exposure settings on a device.

To set an exposure value, call SetValueAsync. To turn auto exposure on, call SetAutoAsync.

You can find out if a device supports this control by checking ExposureControl.Supported.

If the device does not support the ExposureControl, you can still use the Exposure property on the VideoCaptureDevice to set the exposure value.

You can access the ExposureControl for the capture device through MediaCapture.VideoDeviceController.

For how-to guidance for using the ExposureControl, see Manual camera controls for photo and video capture.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Media.Devices
Windows::Media::Devices [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Devices
Windows::Media::Devices [C++]

Metadata

Windows.winmd

Attributes

[ DualApiPartition()]
[ MarshalingBehavior(Standard)]
[ Threading(MTA)]
[ Version(0x06030000)]

See also

Object
Manual camera controls for photo and video capture