[UWP] MediaCapture focuscontrol不支持 [英] [UWP]MediaCapture focuscontrol is not support

查看:94
本文介绍了[UWP] MediaCapture focuscontrol不支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好, 

我对设置MediaCapture焦点有疑问。 MediaCapture.VideoDeviceController.FocusControl.Supported 返回false。我看到示例代码调用await  FocusControl.FocusAsync();如果支持FocusControl。 

I have question on setting MediaCapture focus. The MediaCapture.VideoDeviceController.FocusControl.Supported  returns false. I saw sample code calling await  FocusControl.FocusAsync(); if FocusControl is supported. 

我搜索了Windows开发人员中心文档,发现以下语句

I searched Windows Dev Center Docs and found following statement

"如果设备不支持
FocusControl
,你仍然可以使用
焦点
属性
VideoCaptureDevice
设置焦点值。"

"If the device does not support the FocusControl, you can still use the Focus property on the VideoCaptureDevice to set the focus value."

但它没有显示如何调用fcs。 

But it doesn't show how to invoke foucs. 

我正在使用visual studio 2015进行开发,并在运行Windows 10的Surface Pro上进行测试。

I am using visual studio 2015 for development and tested on Surface Pro running Windows 10. 

我们将非常感谢您提供的任何帮助。  ;

Any help from you will be highly appreciated. 

谢谢。 

推荐答案

Hello Josh Pi,

Hello Josh Pi,

您可以将相机对焦于预览的给定矩形,由位置和大小定义。官方的UWP代码也达到了这个效果。有关详细信息,请参阅此链接:  CameraManualControls-TapToFocus
方法
 

You could focus the camera on the given rectangle of the preview, defined by the position and size. The official UWP code also has achieved this effect. Please refer to this link for details: CameraManualControls-TapToFocus Method 

此外,  欢迎
到开发通用Windows应用程序论坛!

In addition, Welcome to the Developing Universal Windows apps forum!

请阅读粘贴帖子,尤其是

发布指南:主题行标签

Windows 10 SDK和工具的已知问题 
 

Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools  

请记得下次自己为标题添加标签。

Please remember to add tag to title yourself next time.

最好的问候,

Xavier Eoro

Xavier Eoro


这篇关于[UWP] MediaCapture focuscontrol不支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆