Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# Capture Video Stream From Window

I am trying to create a window preview (much like Windows7 'peek' feature) for a PC game. I'd like to capture the realtime game video output to the game window and create a mini preview in a panel.

Any hints on how to do this?

Thanks!

like image 336
Trust Avatar asked Nov 14 '22 04:11

Trust


1 Answers

You need to research 'Hooking'.

Essentially you need to 'hook' whats being rendered to the back buffer before it gets swapped to the screen.

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

It's not exactly an easy process!

like image 62
stevenrcfox Avatar answered Dec 26 '22 05:12

stevenrcfox