ExposureCompensationControl ExposureCompensationControl ExposureCompensationControl ExposureCompensationControl Class

Definition

Provides functionality for modifying exposure levels of captured photos.

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

Remarks

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.

Properties

Max Max Max Max

Gets the maximum exposure time.

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

The maximum exposure time.

Min Min Min Min

Gets the minimum exposure time.

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

The minimum exposure time.

Step Step Step Step

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

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

The smallest exposure compensation increment.

Supported Supported Supported Supported

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

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

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

Value Value Value Value

Gets the exposure compensation level.

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

The exposure time.

Methods

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

Asynchronously sets the exposure compensation.

public : IAsyncAction SetValueAsync(float value)
public IAsyncAction SetValueAsync(Single value)
Public Function SetValueAsync(value As Single) As IAsyncAction
var iAsyncAction = exposureCompensationControl.setValueAsync(value);
Parameters
value
float Single Single Single

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

Returns

The object that is used to control the asynchronous operation.

Remarks

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