How to get the screenshot of the desktop from back buffer with DirectX

前端 未结 1 1266
耶瑟儿~
耶瑟儿~ 2020-12-20 23:03

I asked how to take the screen shot in DirectX and \"Use GetFrontBufferData()\" was answered. However, \"This function is very slow, by design, and should not be used in any

相关标签:
1条回答
  • 2020-12-20 23:47

    You can not get the data from back-buffer, the function GetBackBuffer only retrieve a pointer of the back buffer, not the data in it.

    • Front Buffer. A rectangle of memory that is translated by the graphics adapter and displayed on the monitor. In Direct3D an application never writes directly to the front buffer.
    • Back Buffer. A rectangle of memory that an application can directly write to. The back buffer is never directly displayed on the monitor.

    that means what you saw on the desktop exists in front buffer.

    0 讨论(0)
提交回复
热议问题