C # Capturing a video stream from a window

I am trying to create a window preview (just like the Windows7 "spy" function) for a PC. I would like to capture the live video output into the game window and create a mini-preview in the panel.

Any clues on how to do this?

Thank!

+5
source share
1 answer

You need to research "hooking."

Essentially, you need to โ€œinterceptโ€ what is displayed in the back buffer before it is replaced by the screen.

See the following article for connecting to the buffer in directx: http://spazzarama.wordpress.com/2010/03/29/screen-capture-with-direct3d-api-hooks/

This is not an easy process!

+1

All Articles