捕获应用程序屏幕截图 [英] Capture Application Screen shot
问题描述
亲爱的每一个,
我想在运行时捕获应用程序的屏幕截图。
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.
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. How can i get the example code?
推荐答案
嗨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屋!