-api-id | -api-type |
---|---|
T:Windows.Media.Devices.FocusControl |
winrt class |
Provides functionality for controlling the focus settings on a capture device.
You can find out if a device supports this control by checking FocusControl.Supported.
If the device does not support the FocusControl, you can still use the Focus property on the VideoCaptureDevice to set the focus value.
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.
You can use one of the FocusPreset values by calling SetPresetAsync. Or call SetValueAsync to set a specific Value between the Min and Max.
For how-to guidance for using the FocusControl, see Manual camera controls for photo and video capture.
MediaCapture.VideoDeviceController, Manual camera controls for photo and video capture