在 WPF 应用程序中使用 WinRT 库. [英] Using WinRT library in WPF application.

查看:35
本文介绍了在 WPF 应用程序中使用 WinRT 库.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里关注了这篇文章:http://blogs.msdn.com/b/eternalcoding/archive/2013/10/29/how-to-use-specific-winrt-api-from-desktop-apps-capturing-a-photo-using-your-webcam-into-a-wpf-app.aspx

I have followed this article here: http://blogs.msdn.com/b/eternalcoding/archive/2013/10/29/how-to-use-specific-winrt-api-from-desktop-apps-capturing-a-photo-using-your-webcam-into-a-wpf-app.aspx

而且一切都很好......但是我如何在 WPF 中获得预览?

And it all works great... but how do I get a preview in WPF?

XAMLCaptureElement"控件在 WPF 中不可用.有没有其他方法可以使用 MediaCapture API 进行预览?

The XAML "CaptureElement" control is not available in WPF. Is there any other way I can get a preview using the MediaCapture API?

为什么微软不让这个控件可用?

Why would Microsoft not make this control Available?

推荐答案

迟到的回复,但以防将来对人们有所帮助:在 WPF 中预览 MediaCapture 很困难但可能.这是一些代码示例:https://github.com/mmaitre314/MediaCaptureWPF

Late reply, but in case that helps folks in the future: previewing MediaCapture in WPF is difficult but possible. Here is some code sample: https://github.com/mmaitre314/MediaCaptureWPF

这篇关于在 WPF 应用程序中使用 WinRT 库.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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