Screenshot with BitBlt results in black image on Windows 10

后端 未结 2 481
醉酒成梦
醉酒成梦 2021-01-15 23:01

I am using the code below to capture a screenshot of the currently active window. This code comes from Capture screenshot Including Semitransparent windows in .NET, with a f

2条回答
  •  不思量自难忘°
    2021-01-15 23:43

    Likely it doesn't work for these 2 browsers because they use a hardware-accelerated graphics context (OpenGL- or DirectX-based) to render their content, and this is incompatible with GDI-based calls.

提交回复
热议问题