如何在wpf中显示快照图像? [英] How can I show my snapshot image in wpf?

查看:61
本文介绍了如何在wpf中显示快照图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我正在使用扫描仪开发应用程序.扫描仪中有一个摄像头.当我单击按钮时,它将捕获图像.在Windows窗体中工作正常.
但是,当我使用图像控件在WPF中实现它时,我的控件上没有快照图像.

因此,请告诉我从扫描仪拍摄快照并将其显示在WPF中的确切步骤.请帮助我.

Hi friends,

I am developing an application with a scanner. In the scanner there is a camera. When I click the button it captures the image. It is working fine in windows forms.
But when I implement it in WPF with image control, I do not get a snap shot image on my control.

So please tell me the exact procedure to take a snapshot from the scanner and display it in WPF. Please help me.

推荐答案

使用RenderTargetBitmap类捕获它.我在这里找到了这篇有趣的文章:
http://www.thomasclaudiushuber.com/blog/2008 /04/06/take-snapshots-of-videos-with-wpf/ [
Use RenderTargetBitmap class to capture it. I found this interesting article here :
http://www.thomasclaudiushuber.com/blog/2008/04/06/take-snapshots-of-videos-with-wpf/[^].

Hope it helped. :)


这篇关于如何在wpf中显示快照图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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