Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试制作屏幕录制应用程序。有没有办法使用 DirectX 捕获整个屏幕并将其存储为纹理?这将在 WDM 中。我知道有一种方法可以获得窗口的纹理,但是整个屏幕呢。
我已经尝试过使用 getDC(null) 的 GDI 方法,但这对我的使用来说相当慢。
共有三种方法:gdi 方法、directx 方法和windows media api。当您需要将整个屏幕捕获为纹理时,您应该使用
IDirect3DSurface9->GetFrontBufferData()