关键代码为

            Screen sc = Screen.PrimaryScreen;
            Rectangle rct = sc.Bounds;
            Image img = new Bitmap(rct.Width, rct.Height);
            Graphics gp = Graphics.FromImage(img);
            gp.CopyFromScreen(new Point(0, 0), new Point(0, 0), new Size(rct.Width, rct.Height));

            SolidBrush sb = new SolidBrush(Color.Red);
            Font ft = new System.Drawing.Font("黑体",16);

            gp.DrawString("这是什么",ft,sb,new PointF(0,rct.Height-ft.Height));
            
            
            
            
            img.Save(@"d:\1.bmp");

 

相关文章:

  • 2021-12-14
  • 2021-09-16
  • 2021-12-07
  • 2022-01-05
  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
  • 2021-11-08
猜你喜欢
  • 2021-05-06
  • 2021-11-08
  • 2021-09-07
  • 2021-07-31
  • 2021-09-06
  • 2021-12-05
  • 2021-05-13
相关资源
相似解决方案