C#屏幕截图,支持区域截图publicstaticImageCaptureScreen(){returnCaptureWindow(User32.GetDesktopWindow());}publicstaticImageCaptureWindow(IntPtrhandle){IntPtrhdcSrc=User32.GetWindowDC(handle);RECTwindowRect=newRECT();User32.GetWindowR