How to get the screenshot of the desktop from back buffer with DirectX
问题 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 performance-critical path" was described at MSDN. When I asked other persons the measure, "Transfer the data of a back buffer to the system memory" was answered. But, I was not able to find a concrete method. This is an example of failure. Please let me know the right code. #include <stdio.h> #include <Windows.h> #include