Bitmap bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
            Graphics g = Graphics.FromImage(bitmap);
            g.CopyFromScreen(new Point(0, 0), new Point(0, 0), Screen.PrimaryScreen.Bounds.Size);
            bitmap.Save(Application.StartupPath + @"\截图.png");
            bitmap.Dispose();
            bitmap.Dispose();

  

相关文章:

  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2021-08-28
  • 2021-08-31
  • 2022-01-09
  • 2022-03-02
猜你喜欢
  • 2021-08-13
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2021-07-21
  • 2022-02-12
  • 2021-11-24
相关资源
相似解决方案