1             int s = DateTime.Now.Second;
2 Graphics g = e.Graphics;
3 g.SmoothingMode = SmoothingMode.AntiAlias;
4
5 g.TranslateTransform(label1.Width / 2.0f, label1.Height / 2.0f);
6 g.RotateTransform((float)s * 6-90);
7 g.DrawLine(new Pen(Color.Red, 3.0f), 0, 0, 110, 0);
8
9 g.DrawString(s.ToString()+"我是字符串", this.Font, Brushes.Black, 0, 0);先上截图:


 

 

相关文章:

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