I'm trying to take screenshots of a game created in OpenGL..
I have this code:
_captureProcess.BringProcessWindowToFront();
ScreenCapture sc = new ScreenCapture();
Image img = sc.CaptureWindow(_process.MainWindowHandle);
From: http://www.developerfusion.com/code/4630/capture-a-screen-shot/
The IntPTR is correct! But the image is completely black!
_process = Game in full screen, OPENGL..
How could I do to be able to take screenshots in real time, without getting the black screen?