WPF窗口在“打印屏幕"中消失 [英] WPF window disappears in Print Screen

查看:92
本文介绍了WPF窗口在“打印屏幕"中消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1.我已经用VC和C#编写了用于屏幕捕获的代码,但是无法捕获屏幕快照中的WPF窗口?

2.如果按键盘上的打印屏幕"按钮,则会捕获WPF窗口,可以在Windows剪贴板的位图中看到它.

但是用VC或C#编写的应用程序无法捕获屏幕截图中的WPF窗口,为什么??????

任何解决方案??? :(

1. I have written a code in VC as well as in C# for screen capture but it is not able to capture WPF window in screen shot?

2. If I press print screen button on keyboard then WPF window is captured, can be seen in bitmap on windows clipboard.

But application written in VC or C# is unable to capture WPF window in screen shot why??????

Any solution to this ???? :(

推荐答案

看看这个-这可能就是为什么您没有获得WPF输出的原因
桌面窗口管理器 [ http://spazzarama.wordpress.com/2009/02/12/screen -capture-with-vista-dwm/ [
Take a look at this - it''s probably why you don''t get the WPF output
Desktop Window Manager[^]

Here is one way to do it:
http://spazzarama.wordpress.com/2009/02/12/screen-capture-with-vista-dwm/[^]


Regards
Espen Harlinn


这篇关于WPF窗口在“打印屏幕"中消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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