Capture screen using DirectX

Here is some sample code to capture the screen with DirectX 9. You shouldn’t have to install any SDK (except the standard files that come with Visual Studio, although I didn’t tested VS 2010). Just create a simple Win32 console application, add the following in the stdafx.h file: #include <Wincodec.h> // we use WIC for … Read more

How to smooth ugly jitter/flicker/jumping when resizing windows, especially dragging left/top border (Win 7-10; bg, bitblt and DWM)?

PART 2: Identifying and Fixing Windows Resize Problems Note: you want to read PART 1 first for this answer to make sense. This answer will not solve all your resizing problems. It organizes the still-usable ideas from other posts and adds a few novel ideas. None of this behavior is at all documented on Microsoft’s … Read more