捕获窗口的屏幕截图 [英] Capturing screenshot of a window

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

问题描述




有人可以建议拍摄窗口照片的工作样本吗?

我尝试了一些,但无法获得图片。我不知道为什么那些

函数没有得到图像。


注意:我想要窗口的快照,即使它是'不可见。

而且,我在C#工作。


一个例子: http://www.developerfusion.co.uk/show/4630/

Hi,

Can anyone suggest working sample of capturing a window''s picture?
I tried a few, but couldn''t get the image. I don''t know why those
functions are not getting the image.

Note: I want the snapshot of the window even when it''s not visible.
And, I work in "C#".

An example: http://www.developerfusion.co.uk/show/4630/

推荐答案

另一个来源 -
http://www.codeproject.com/csharp/screen_capturing.asp


我认为,问题是如果窗口最小化或关闭

屏幕,或者如果它在另一个未激活(可见)的桌面上,

则屏幕截图不正确。它的屏幕截图是

活动窗口还是黑色吧。

任何人都可以建议如何拍摄正确的屏幕即使窗口是

不是活跃的,最重要的一个吗?


万分感谢!

Another source-
http://www.codeproject.com/csharp/screen_capturing.asp

I think, the problem is that if the window is minimized or off the
screen, or if it is on another desktop which is not active (visible),
then the screen shot is not correct. Either its screenshot of the
active window or it is black bar.
Can anyone advise how to take correct screen shot even if the window is
not the active and foremost one?

Thanks a million!


Nayan写道:
Nayan wrote:




有人可以建议捕获窗口图片的工作样本吗?

我尝试过一些,但无法得到图像。我不知道为什么那些

函数没有得到图像。


注意:我想要窗口的快照,即使它是'不可见。
Hi,

Can anyone suggest working sample of capturing a window''s picture?
I tried a few, but couldn''t get the image. I don''t know why those
functions are not getting the image.

Note: I want the snapshot of the window even when it''s not visible.



当窗口不可见时,它的图像并不存在。参见

< http://blogs.msdn.com/oldnewthing/archive/2005/06/24/432229.aspxfor

more info;但是,这些信息的级别可能比你更低。

喜欢。

When the window isn''t visible, its image doesn''t really exist. See
<http://blogs.msdn.com/oldnewthing/archive/2005/06/24/432229.aspxfor
more info; the information there might be at a lower level than you
like, though.


而且,我的工作是C#。<例如: http:/ /www.developerfusion.co.uk/show/4630/



-

Larry Lard
< a href =mailto:la ******* @ googlemail.com> la ******* @ googlemail.com

地址是真实的,但是未读 - 请回复小组

对于VB和C#问题 - 告诉我们哪个版本


--
Larry Lard
la*******@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version


我想知道在Windows Vista中是否仍然如此因为可以在任务栏中显示应用程序的
缩略图视图,即使应用程序是最小化的。


Gabriel Lozano-Morán

.NET Aficionado
http:// www .pointerx.net


&q uot; Larry Lard < la ******* @ googlemail.comwrote in message

news:4u ************* @ mid.individual.net ...
I wonder if this is still true in Windows Vista since it is possible to show
thumbnail views of the application in the taskbar even if the application is
minimized.

Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net

"Larry Lard" <la*******@googlemail.comwrote in message
news:4u*************@mid.individual.net...

Nayan写道:
Nayan wrote:

>

任何人都可以建议工作捕获窗口图片的样本?
我尝试了一些,但无法获得图像。我不知道为什么那些
功能没有得到图像。

注意:我想要窗口的快照,即使它不可见。
>Hi,

Can anyone suggest working sample of capturing a window''s picture?
I tried a few, but couldn''t get the image. I don''t know why those
functions are not getting the image.

Note: I want the snapshot of the window even when it''s not visible.



当窗口不可见时,它的图像并不存在。参见

< http://blogs.msdn.com/oldnewthing/archive/2005/06/24/432229.aspxfor

more info;那里的信息可能比你想要的低,

虽然。


When the window isn''t visible, its image doesn''t really exist. See
<http://blogs.msdn.com/oldnewthing/archive/2005/06/24/432229.aspxfor
more info; the information there might be at a lower level than you like,
though.


>而且,我在C#工作。 。

一个例子: http:// www .developerfusion.co.uk / show / 4630 /




-

Larry Lard la*******@googlemail.com

地址是真实的,但未读 - 请回复小组

对于VB和C#问题 - 告诉我们哪个版本



--
Larry Lard
la*******@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version



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

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