FlashControl class

Applies to Windows and Windows Phone

Provides functionality for controlling the flash settings on a capture device.

Syntax


var flashControl = VideoDeviceController.flashControl;

Attributes

[DualApiPartition()]
[MarshalingBehavior(Standard)]
[Threading(MTA)]
[Version(0x06030000)]

Members

The FlashControl class has these types of members:

Methods

The FlashControl class inherits methods from the Object class (C#/VB/C++).

Properties

The FlashControl class has these properties.

PropertyAccess typeDescription

Auto

Read/writeGets or sets a value that specifies if flash is automatically set.

Enabled

Read/writeGets a value that specifies if the flash on the capture device is enabled or disabled.

PowerPercent

Read/writeGets or sets the intensity of the flash.

PowerSupported

Read-onlyGets a value that specifics if the device allows the torch LED power settings to be changed.

RedEyeReduction

Read/writeGets a value that specifies if the red eye reduction is enabled or disabled.

RedEyeReductionSupported

Read-onlyGets a value that specifies if the capture device supports red eye reduction.

Supported

Read-onlyGets a value that specifies if the capture device supports the flash control.

 

Remarks

The FlashControl enable apps to manage the flash on a device. This can be used in a photo app to handle low-light conditions or for RedEyeReduction.

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

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

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

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

Object

 

 

Show:
© 2014 Microsoft