C#屏幕截图
var topLeft = control.PointToScreen(new Point(0, 0));
var bitmap = ScreenCapture.Capture(
(int)topLeft.X,
(int)topLeft.Y,
(int)control.ActualWidth,
(int)control.ActualHeight);
bitmap.Save(path);
设置图形大小,然后保存为path路径图片。
敲击键盘,创造价值