Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides functionality for controlling the focus settings on a capture device.
public ref class FocusControl 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 FocusControl 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 FocusControl
Public NotInheritable Class FocusControl
Object Platform::Object IInspectable FocusControl
Windows 10 (introduced in 10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced in v1.0)
You can find out if a device supports this control by checking FocusControl.Supported.
You can access the FocusControl for the capture device through MediaCapture.VideoDeviceController.
The FocusControl gives apps additional control over the focus settings on a device.
For how-to guidance for using the FocusControl, see Manual camera controls for photo and video capture.
Gets a value that specifics if the capture device supports the FocusChanged event.
Gets a MediaCaptureFocusState value indicating the current focus state of the capture device.
Gets the maximum focus length.
Gets the minimum focus length.
Gets the capture device's current focus mode.
Gets the focus preset.
Gets the smallest focus increment supported by the capture device.
Gets a value that specifies if the capture device supports the focus control.
Gets a list of values indicating the manual focus distances that are supported by the capture device.
Gets a list of values indicating the focus modes that are supported by the capture device.
Gets a list of values indicating the auto focus ranges that are supported by the capture device.
Gets the focus presets that the capture device supports.
Gets the current value that the focus is set to.
Gets a value that indicates whether WaitForFocus is supported by the capture device.
Asynchronously focuses the device.
Locks the capture device's focus.
Asynchronously sets the focus Preset.
Asynchronously sets the focus Preset, specifying if the operation must complete before the device is focused.
Asynchronously sets the focus Value.
Unlocks the capture device's focus if it has previously been locked with a call to LockAsync.