Skip to main content
FlashControl class

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

Syntax


var flashControl = VideoDeviceController.flashControl;

public sealed class FlashControl

Public NotInheritable Class FlashControl

public ref class FlashControl sealed 

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/write

Gets or sets a value that specifies if flash is automatically set.

Enabled

Read/write

Gets a value that specifies if the flash on the capture device is enabled or disabled.

PowerPercent

Read/write

Gets or sets the intensity of the flash.

PowerSupported

Read-only

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

RedEyeReduction

Read/write

Gets a value that specifies if the red eye reduction is enabled or disabled.

RedEyeReductionSupported

Read-only

Gets a value that specifies if the capture device supports red eye reduction.

Supported

Read-only

Gets 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 (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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

Attributes

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

See also

Object