C#通过窗体句柄后台屏幕截图,窗体可隐藏无影响
调用方法:
public static Bitmap GetSnapHandlePics(IntPtr handle) { WindowSnap snap = WindowSnap.GetWindowSnap((IntPtr)Convert.ToInt32(handle.ToString()), true); if (snap.Image != null) { Bitmap bitmap = snap.Image; return bitmap; } return null; }
评论前必须登录!
注册