Provides functionality for controlling the focus settings on a capture device.
The FocusControl class has these types of members:
The FocusControl class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|FocusAsync||Asynchronously focuses the device.|
|SetPresetAsync(FocusPreset)||Asynchronously sets the focus Preset.|
|SetPresetAsync(FocusPreset, Boolean)||Asynchronously sets the focus Preset, specifying if the operation must complete before the device is focused.|
|SetValueAsync||Asynchronously sets the focus Value.|
The FocusControl class has these properties.
|Read-only||Gets the maximum focus length.|
|Read-only||Gets the minimum focus length.|
|Read-only||Gets the focus preset.|
|Read-only||Gets the smallest focus increment supported by the capture device.|
|Read-only||Gets a value that specifies if the capture device supports the focus control.|
|Read-only||Gets the focus presets that the capture device supports.|
|Read-only||Gets the current value that the focus is set to.|
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.
Minimum supported client
|Windows 8.1 [Windows Store apps, desktop apps]|
Minimum supported server
|Windows Server 2012 R2 [Windows Store apps, desktop apps]|