Point screenPoint = 控件.PointToScreen(new Point());
Rectangle rect = new Rectangle(screenPoint, chartCellLine.Size);
Image img = new Bitmap(rect.Width, rect.Height);
Graphics g = Graphics.FromImage(img);
g.CopyFromScreen(rect.X - 1, rect.Y - 1, 0, 0, rect.Size);
img.Save(strPicPath, System.Drawing.Imaging.ImageFormat.Jpeg);

//截图窗体上任意位置的控件

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2022-02-24
  • 2021-06-21
猜你喜欢
  • 2022-12-23
  • 2021-10-23
  • 2022-02-16
  • 2021-09-30
  • 2022-12-23
  • 2021-12-31
相关资源
相似解决方案