如何在MediaCapture中禁用聚焦辅助灯?

时间:2015-10-15 19:58:28

标签: c# windows-phone-8.1 windows-store-apps

我正在尝试禁用焦点辅助灯,我在MediaCapture.VideoDeviceController.FocusControl

中找不到有效的方法或属性

Windows Phone的相机应用程序允许配置聚焦辅助灯:

enter image description here

1 个答案:

答案 0 :(得分:0)

查看Microsoft Windows Universal Samples GitHub repo上的CameraManualControls SDK sample

您将在FlashControl

下找到设置所需的属性
private void FocusLightCheckBox_CheckedChanged(object sender, RoutedEventArgs e)
{
    var flashControl = _mediaCapture.VideoDeviceController.FlashControl;

    flashControl.AssistantLightEnabled = (FocusLightCheckBox.IsChecked == true);
}
相关问题