ExposureCompensationControl
ExposureCompensationControl
ExposureCompensationControl
ExposureCompensationControl
Class
Definition
Provides functionality for modifying exposure levels of captured photos.
public : sealed class ExposureCompensationControl : IExposureCompensationControlpublic sealed class ExposureCompensationControl : IExposureCompensationControlPublic NotInheritable Class ExposureCompensationControl Implements IExposureCompensationControl// You can use this class in JavaScript.
- Attributes
| 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// You can use this property in JavaScript.
- 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// You can use this property in JavaScript.
- 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// You can use this property in JavaScript.
- 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// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
true if the exposure compensation control is supported; otherwise, false.
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// You can use this method in JavaScript.
- 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.
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