Take screenshot of DirectX full-screen application
Posted
by iconiK
on Stack Overflow
See other posts from Stack Overflow
or by iconiK
Published on 2009-12-25T22:50:26Z
Indexed on
2010/05/15
2:14 UTC
Read the original article
Hit count: 429
This boggles me. DirectX bypasses everything and talks directly to the device driver, thus GDI and other usual methods won't work - unless Aero is disabled (or unavailable), all that appears is a black rectangle at the top left of the screen. I have tried what other have suggested on several forums, using DirectX to get the back buffer and save it, but I get the same result:
device->GetFrontBufferData(0, surface); D3DXSaveSurfaceToFile("fileName", D3DXIFF_BMP, surface, NULL, NULL);
Is there any way to get a screenshot of another full-screen DirectX application when Aero is enabled?
© Stack Overflow or respective owner