Blank Screenshots In Vista and Win7 when gaming

假装没事ソ 提交于 2019-12-07 02:17:30

I would guess you are trying to take a screenshot using the normal screen buffer of a hardware accelerated surface. Your Windows XP result is likely a fluke: a unique or non-optimial video configuration (You'll likely get the same results if you try taking a screenshot of a video - a big black, brown or pink rectangle where the video card inserts the accelerated frame buffer).

You would need to either turn down the systems video acceleration (compatiblity mode where everything gets rendered to the software screen buffer) which is a system wide setting, or change your screenshot code to work directly with the graphics API you are using (DirectX, OpenGL) - the code for that is entirely dependent on the API/method you are using for rendering.

Above answer is completely wrong besides this quote "change your screenshot code to work directly with the graphics API you are using (DirectX, OpenGL) "

That is a fix but hard.

Your problem is the fact that games are rendered on a different surface in vista and win7.

You either need to hook the graphics (DirectX, OpenGL) or you need to try DWM screen capture.

"Screen shot in 2 clicks" for xp took me about 2000 clicks and countless hours searching for the answer. It is not well documented at all (at least the pure .net solution isnt)

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