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

丶灬走出姿态 提交于 2019-11-29 14:16:04

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!