Question

I'm trying to make a screen recording app. Is there a way to use DirectX to capture the entire screen and store it as a texture? This would be in WDM. I know there's a way to get the texture for windows, but what about the entire screen.

I've tried the GDI method of using getDC(null) but that's rather slow for my uses.

Was it helpful?

Solution

There's three methods: gdi method, directx method and windows media api. When you need to capture entire screen as texture, you should use

IDirect3DSurface9->GetFrontBufferData()
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top