How to get the screenshot of a minimized application programmatically?

久未见 提交于 2020-01-04 04:54:08

问题


I'm trying to get the screenshot of a minimized application, any ideas of how to it under windows ? I'm using C#

tks in advance, Jose


回答1:


Restore, take the screenshot, minimize back...

If it is not on screen, I don't see how you can make a copy of the image...




回答2:


On Vista and later, this should be possible with the Desktop Window Manager. Explorer also displays (animated) screenshots of minimized windows when hovering over a taskbar entry with DWM enabled, so the DWM APIs should be the way to go.

Out of curiosity, why do you need such a screenshot?




回答3:


It's easy. Just use the printWindow Api call!



来源:https://stackoverflow.com/questions/773398/how-to-get-the-screenshot-of-a-minimized-application-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!