SceneModeControl SceneModeControl SceneModeControl SceneModeControl Class

Definition

Provides functionality for controlling the scene mode settings on a capture device.

public : sealed class SceneModeControl : ISceneModeControl
public sealed class SceneModeControl : ISceneModeControl
Public NotInheritable Class SceneModeControl Implements ISceneModeControl
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The SceneModeControl enables apps to tune the post-processing of captured frames to better match the scene being recorded. The SupportedModes enumeration specifies the modes, such as Snow, Night, and Sport, that are supported by the device.

To select a mode, call SceneModeControl.SetValueAsync.

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

Properties

SupportedModes SupportedModes SupportedModes SupportedModes

Gets the scene modes supported on the capture device.

public : IVectorView<CaptureSceneMode> SupportedModes { get; }
public IReadOnlyList<CaptureSceneMode> SupportedModes { get; }
Public ReadOnly Property SupportedModes As IReadOnlyList<CaptureSceneMode>
var iReadOnlyList = sceneModeControl.supportedModes;
Value
IVectorView<CaptureSceneMode> IReadOnlyList<CaptureSceneMode> IReadOnlyList<CaptureSceneMode> IReadOnlyList<CaptureSceneMode>

The supported scene modes.

Value Value Value Value

Gets the current scene mod ethe capture device is set to.

public : CaptureSceneMode Value { get; }
public CaptureSceneMode Value { get; }
Public ReadOnly Property Value As CaptureSceneMode
var captureSceneMode = sceneModeControl.value;

Remarks

To set this property, call SetValueAsync.

See Also

Methods

SetValueAsync(CaptureSceneMode) SetValueAsync(CaptureSceneMode) SetValueAsync(CaptureSceneMode) SetValueAsync(CaptureSceneMode)

Asynchronously sets the color temperature Value.

public : IAsyncAction SetValueAsync(CaptureSceneMode sceneMode)
public IAsyncAction SetValueAsync(CaptureSceneMode sceneMode)
Public Function SetValueAsync(sceneMode As CaptureSceneMode) As IAsyncAction
Windows.Media.Devices.SceneModeControl.setValueAsync(sceneMode).done( /* Your success and error handlers */ );
Parameters
sceneMode
CaptureSceneMode CaptureSceneMode CaptureSceneMode CaptureSceneMode

The scene mode to set the Value property to.

Returns

The object that is used to control the asynchronous operation.

See Also