捕获应用程序屏幕截图 [英] Capture Application Screen shot

查看:124
本文介绍了捕获应用程序屏幕截图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的每一个,

我想在运行时捕获应用程序的屏幕截图。

I want to capture screen shot of an application at runtime.

之前的解决方案,我使用具有功能的GDI:BitBlt功能。

the solution before, i use GDI with function: BitBlt function.

但它无法捕获Windows Media Player的屏幕截图。

But it cannot capture the screen shot of Windows Media Player.

我已经按照DirectX解决方案,但我可以得到期望的结果。

I have followed the DirectX solution, but i can get the expect result.

我想问两个问题:

1。 DirectX是否可以捕获应用程序的屏幕截图,甚至认为它被另一个应用程序隐藏了?

1. Can DirectX capture the screen shot of an application even thought its hidden by another one?

2。我如何获得示例代码?

2. How can i get the example code?

感谢每一个

Thanks every one

推荐答案

嗨t_manh,

Hi t_manh,

有关捕获屏幕的示例代码,建议您参考以下链接获取更多信息:


捕获屏幕的各种方法:< a href ="http://www.codeproject.com/Articles/5051/Various-methods-for-capturing-the-screen">
http://www.codeproject.com/Articles/5051/Various - 方法 - 用于捕获-的屏幕。


Barry的屏幕截图:
http: //www.codeproject.com/Articles/3498/Barry-s-Screen-Capture


技巧:如何捕获视频屏幕截图:
http://www.codeproject.com/Articles/6200/Trick-How-to-Capture-Video-Screen-Shots

For the sample codes about capturing screen, I suggest you refer to the following links for more information:
Various methods for capturing the screen: http://www.codeproject.com/Articles/5051/Various-methods-for-capturing-the-screen.
Barry's Screen Capture: http://www.codeproject.com/Articles/3498/Barry-s-Screen-Capture.
Trick: How to Capture Video Screen Shots: http://www.codeproject.com/Articles/6200/Trick-How-to-Capture-Video-Screen-Shots.

如果您对DirectX有任何疑问,请转到APP中心论坛:
http://forums.create.msdn.com/forums/?GroupID=7
。顺便说一句,请确保线程中只有问题,以便社区成员可以快速搜索出来。

If you have any questions about DirectX, please move to APP Hub Forum: http://forums.create.msdn.com/forums/?GroupID=7. By the way, please make sure there is only on question in a thread so that the community members can search it out quickly.

感谢您积极参与MSDN论坛。

祝你好运,

Thanks for active participation in the MSDN Forum.
Best regards,


这篇关于捕获应用程序屏幕截图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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