Saving a screenshot of a window using C#, WPF, and DWM
Posted
by Evan
on Stack Overflow
See other posts from Stack Overflow
or by Evan
Published on 2009-12-07T06:08:07Z
Indexed on
2010/03/12
17:17 UTC
Read the original article
Hit count: 328
This is a follow up question to this question
The solution to the above uses DWM to display a thumbnail of an active window. If I understand correctly, it works by letting you specify the window handle of the application you want to view and then having you provide a window handle and a location on that window where windows should draw the contents of the target Window.
Is there a way to render the window screen shot directly to BitmapImage or Image instead of directly drawing it somewhere in your window? (Basically to just grab a screen shot of the window - even if it's covered by another window - with out using an updating thumbnail.)
Thanks for you help!
© Stack Overflow or respective owner