Hi,
i tried to take a screen using some .NET languages but i can capture a screenshot only for Win32 view (Desktop). I also tried to use “Microsoft.DirectX” and “Microsoft.DirectX.Direct3D” but with no success. I need also just a command-line software where i can take the in-game screenshot using directx like this:
capture.exe /capture=[my_destination].jpg
Or maybe if you can, an example code.
Can you help me?
there are many ways to capture a screen , depending both of OS and game video API used.
if you only plan to support only windows 10 , dxgi is the answer to your question.
if you plan to handle more platform the answer is far more complicated
I’m actually trying to capture the in-game screenshot in “Warface” of Crytek, using D3D9, but i can’t find a good library to take a screenshot. Too old for a project that works on Windows 7/8/8.1 and 10, specially using D3D9. Have you some tips about some library that i can use for C++ or C# or VB.NET as u wish.