9

I want to get a screenshot of non visible or minimized window and save it as bmp. I know how to do it with visible window. It's easy. But get non visible is quite difficult. I have looked over Internet and didn't find any example. I know that Desktop Window Manager get window's thumbnails. DWM example But I didn't find any example how to convert thumbnail to bmp.

P.S. Please don't suggest me to bring window in front, get a screenshot and then minimize it.

Filburt
  • 17,626
  • 12
  • 64
  • 115
Valentyn Grygoriev
  • 463
  • 10
  • 29
  • 2
    Maybe this question will help? http://stackoverflow.com/questions/1858122/saving-a-screenshot-of-a-window-using-c-wpf-and-dwm OR this http://spazzarama.com/2009/02/12/screen-capture-with-vista-dwm/ which specifically says the window doesn't need to be visible. – Pete Garafano Jan 12 '14 at 21:40
  • http://blogs.msdn.com/b/oldnewthing/archive/2005/06/24/432229.aspx – GSerg Jan 12 '14 at 21:43
  • Unfortunately I can't examine your advices now. As soon as I could do it I'll write about result obligatory. – Valentyn Grygoriev Jan 13 '14 at 17:24
  • 2
    @TheGreatCo You were close. It helped.[http://spazzarama.com/2009/02/07/screencapture-with-direct3d/](http://spazzarama.com/2009/02/07/screencapture-with-direct3d/) Thank you. – Valentyn Grygoriev Jan 18 '14 at 14:32

0 Answers0