C# 截屏代码
代码说明:
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using System.Windows.Forms; namespace Screencap { public class Capture { public enum CaptureTarget { Window, Screen } public static Bitmap CaptureImage(CaptureTarget target, IntPtr windowHandle) { if (target == CaptureTarget.Window && windowHandle != IntPtr.Zero) { Rectangle rect = GetWindowRect(windowHandle);
下载说明:请别用迅雷下载,失败请重下,重下不扣分!