title: Saving a screenshot of a window using C#, WPF, and DWM
body: <p>This is a follow up question to <a href="https://stackoverflow.com/questions/1464298/how-to-get-a-thumbnail-of-a-window-in-c">this question</a></p>
  
  <p>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.</p>
  
  <p>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.)</p>
  
  <p>Thanks for you help! </p>