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.
|Configure||Configures the FocusControl object with values specified in the provided FocusSettings object.|
|FocusAsync||Asynchronously focuses the device.|
|LockAsync||Locks the capture device's focus.|
|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.|
|UnlockAsync||Unlocks the capture device's focus if it has previously been locked with a call to LockAsync.|
The FocusControl class has these properties.
|Read-only||Gets a value that specifics if the capture device supports the FocusChanged event.|
|Read-only||Gets a MediaCaptureFocusState value indicating the current focus state of the capture device.|
|Read-only||Gets the maximum focus length.|
|Read-only||Gets the minimum focus length.|
|Read-only||Gets the capture device's current focus mode.|
|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 a list of values indicating the manual focus distances that are supported by the capture device.|
|Read-only||Gets a list of values indicating the focus modes that are supported by the capture device.|
|Read-only||Gets a list of values indicating the auto focus ranges that are supported by the capture device.|
|Read-only||Gets the focus presets that the capture device supports.|
|Read-only||Gets the current value that the focus is set to.|
|Read-only||Gets a value indicating whether WaitForFocus is supported by the capture device.|
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]|
Minimum supported phone
|Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]|