I was reading this arcile:
http://www.ring3circus.com/gameprogramming/case-study-fraps/
and I’ve come to realize that given how old it is, (and the author even suggests against using his code), that this really isn’t going to suite my needs (one, it’s C#, two, it’s for DX9). I am trying to get a rectangle capture of a DirectX game window and have it in memory as some sort of streaming video that I can reference. The window needs to be able to still be captured if not in foreground, or even visible (buried behind other windows). I have tried that C# library (the one made with EasyHook and SlimDX), but I’ve only managed to get the demo to work successfully once with a DirectX 11 game under 64bit (been unable to reproduce it since). Even then, the capture rate was eye-bleedingly slow. Along with a lot of other things that covered overlaying to DirectX (which I don’t need). I’d like to mimic what fraps does as far as capture goes, but I just need a rectangle area of the game, not the whole thing, and I don’t need to write it to a file. Could I perhaps get a code sample of how I’d manage to get a fast frame capture of a given rectangle of the game window, in C#, that works for DX9 trough DX11?
I was reading this arcile: http://www.ring3circus.com/gameprogramming/case-study-fraps/ and I’ve come to realize that given how
Share
Here is my C++ code for the same problem.
You /might/ be able to port this to C#, or at least wrap it in a library. I asked a similar question, but then found the answer: DirectX 11 framebuffer capture (C++, no Win32 or D3DX)