Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

VideoDeviceController.Exposure | exposure property

Gets or sets the camera's exposure time.

Syntax


var exposure = videoDeviceController.exposure;

Property value

Type: MediaDeviceControl

A MediaDeviceControl object that provides methods to get and set the exposure time.

Remarks

Focus is specified in log base 2 seconds. For values less than zero, the exposure time is 1/(2ⁿ) seconds. For values of zero and above, the exposure time is 2ⁿ seconds.

Examples

The following example shows how to get the value of this property.


// Get the step size, minimum value, and maximum value of the exposure property to set
// values on a slider control.

function setExposureSlider() {
    var videoDev = null;
    var bValue = null;

    var mediaDevice = new Windows.Media.Capture.MediaCapture();
    videoDev = mediaDevice.videoDeviceController;
  
    if (videoDev.exposure.capabilities.step !== 0)
    {
        bValue = videoDev.exposure.tryGetValue();
        document.getElementById("slExp").value = bValue.value;
        document.getElementById("slExp").min = videoDev.exposure.capabilities.min;
        document.getElementById("slExp").max = videoDev.exposure.capabilities.max;
        document.getElementById("slExp").step = videoDev.exposure.capabilities.step;
    } 
}


Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

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

See also

VideoDeviceController

 

 

Show:
© 2015 Microsoft