ExposureCompensationControl ExposureCompensationControl ExposureCompensationControl ExposureCompensationControl ExposureCompensationControl Class


Provides functionality for modifying exposure levels of captured photos.

public : sealed class ExposureCompensationControl : IExposureCompensationControl
struct winrt::Windows::Media::Devices::ExposureCompensationControl : IExposureCompensationControl
public sealed class ExposureCompensationControl : IExposureCompensationControl
Public NotInheritable Class ExposureCompensationControl Implements IExposureCompensationControl
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


ExposureCompensationControl enables apps to modify exposure levels of captured photos.

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

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

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


Max Max Max Max Max

Gets the maximum exposure time.

public : float Max { get; }
float Max();
public float Max { get; }
Public ReadOnly Property Max As float
var float = exposureCompensationControl.max;
float float float

The maximum exposure time.

Min Min Min Min Min

Gets the minimum exposure time.

public : float Min { get; }
float Min();
public float Min { get; }
Public ReadOnly Property Min As float
var float = exposureCompensationControl.min;
float float float

The minimum exposure time.

Step Step Step Step Step

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

public : float Step { get; }
float Step();
public float Step { get; }
Public ReadOnly Property Step As float
var float = exposureCompensationControl.step;
float float float

The smallest exposure compensation increment.

Supported Supported Supported Supported Supported

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

public : Platform::Boolean Supported { get; }
bool Supported();
public bool Supported { get; }
Public ReadOnly Property Supported As bool
var bool = exposureCompensationControl.supported;
bool bool bool

true if the exposure compensation control is supported; otherwise, false.

Value Value Value Value Value

Gets the exposure compensation level.

public : float Value { get; }
float Value();
public float Value { get; }
Public ReadOnly Property Value As float
var float = exposureCompensationControl.value;
float float float

The exposure time.


SetValueAsync(Single) SetValueAsync(Single) SetValueAsync(Single) SetValueAsync(Single) SetValueAsync(Single)

Asynchronously sets the exposure compensation.

public : IAsyncAction SetValueAsync(float value)
IAsyncAction SetValueAsync(Single value) const;
public IAsyncAction SetValueAsync(Single value)
Public Function SetValueAsync(value As Single) As IAsyncAction
Windows.Media.Devices.ExposureCompensationControl.setValueAsync(value).done( /* Your success and error handlers */ );
Single Single Single

The exposure compensation level to set the Value property to. The minimum and maximum values are specified by Min and Max.


The object that is used to control the asynchronous operation.


The supplied value must be between Min and Max, inclusive, in increments of Step. If you supply an arbitrary value that does not meet these requirements, the value will not be rounded. Instead, an exception will be thrown.

See Also

See Also