ExposureCompensationControl ExposureCompensationControl ExposureCompensationControl ExposureCompensationControl Class

Provides functionality for modifying exposure levels of captured photos.

Syntax

Declaration

public sealed class ExposureCompensationControlpublic sealed class ExposureCompensationControlPublic NotInheritable Class ExposureCompensationControlpublic sealed class ExposureCompensationControl

Remarks

ExposureCompensationControl enables apps to modify exposure levels of captured photos.

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

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

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

Properties summary

Gets the maximum exposure time.

Gets the minimum exposure time.

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

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

Gets the exposure compensation level.

Methods summary

Asynchronously sets the exposure compensation.

Properties

  • Max
    Max
    Max
    Max

    Gets the maximum exposure time.

    public float Max { get; }public float Max { get; }Public ReadOnly Property Max As floatpublic float Max { get; }

    Property 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 floatpublic float Min { get; }

    Property 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 floatpublic float Step { get; }

    Property 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 bool Supported { get; }public bool Supported { get; }Public ReadOnly Property Supported As boolpublic bool Supported { get; }

    Property Value

    • bool
      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 floatpublic float Value { get; }

    Property 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(Single value)public IAsyncAction SetValueAsync(Single value)Public Function SetValueAsync(value As Single) As IAsyncActionpublic IAsyncAction SetValueAsync(Single value)

    Parameters

    • value
      System.Single
      System.Single
      System.Single
      System.Single

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

    Returns

    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.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.Media.Devices.dll