Share via


FlashControl Class

Definition

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

public ref class FlashControl sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class FlashControl final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class FlashControl
Public NotInheritable Class FlashControl
Inheritance
Object Platform::Object IInspectable FlashControl
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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.

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

Properties

AssistantLightEnabled

Gets or sets a value indicating whether focus assist light is enabled on the capture device.

AssistantLightSupported

Gets a value indicating whether focus assist light is supported by the capture device.

Auto

Gets or sets a value that specifies if flash is automatically set. This value also determines if the focus assist light operates automatically or by default whenever AssistantLightEnabled is set.

Enabled

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

PowerPercent

Gets or sets the intensity of the flash.

PowerSupported

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

RedEyeReduction

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

RedEyeReductionSupported

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

Supported

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

Applies to

See also