Tag:Move frame

  • I wrote a screenshot tool

    Time:2020-9-6

    It’s very simple, that is, first take a full screen shot, and then crop it as needed. Therefore, to get the size of the desktop, the code is as follows: public class PrimaryScreen { #region Win32 API [DllImport(“user32.dll”)] static extern IntPtr GetDC(IntPtr ptr); [DllImport(“gdi32.dll”)] static extern int GetDeviceCaps( IntPtr hdc, // handle to DC int […]