VB.NET + WPF捕捉截图? [英] VB.NET + WPF Capturing screenshots?

查看:79
本文介绍了VB.NET + WPF捕捉截图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!



我一直在尝试在VS 2012中创建一个与Windows中的Snipping Tool类似的项目。从基础知识开始,我一直在寻找可以捕获整个屏幕截图的方式,并将其保存为JPG或PNG文件。



到目前为止我发现的大多数解决方案都是针对WinForms应用程序的,我真的想在WPF中构建它。我也不想调用PrtScr键(除非我有办法将用户的剪贴板恢复到原来的状态)。我找到的其他解决方案都是在C#中,我没有足够的经验。



这里的任何人都可以给我一些指导或起点,它会非常感谢! :)



提前致谢,



Hello!

I've been trying to create a project in VS 2012 that would behave similar to the 'Snipping Tool' in Windows. Starting with the basics, I have been searching high and low for a way that I could capture a screenshot of the whole screen and save it to a JPG or PNG file.

Most of the solutions I have found so far are for WinForms applications, and I really want to build it in WPF. I also don't want to invoke the PrtScr key (unless there is a way I can restore the user's clipboard to its original state afterwards). The other solutions I have found are in C#, which I don't have enough experience with.

Could anybody here offer me some guidance or a starting point, it would be greatly appreciated! :)

Thanks in advance,

Will

推荐答案

看得更彻底。问题很简单。例如: http://www.codeproject.com/search.aspx?q = WPF + capture + screen& doctypeid = 5 [ ^ ]。



这只适用于CodeProject;但你也可以谷歌。解决方案只需几行代码。



-SA
Look more thoroughly. The problem is really simple. For example: http://www.codeproject.com/search.aspx?q=WPF+capture+screen&doctypeid=5[^].

And this is only on CodeProject; but you can also Google. And the solution will be just few lines of code.

—SA


这篇关于VB.NET + WPF捕捉截图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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