C#开发教程--如何绘制箭头

Graphics g = e.Graphics;
g.SmoothingMode = SmoothingMode.AntiAlias;
g.FillRectangle(Brushes.White, this .ClientRectangle);
Pen p = new Pen(Color.Black, 10 );
p.StartCap = LineCap.Round;
p.EndCap = LineCap.ArrowAnchor;
g.DrawLine(p, 30 , 30 , 80 , 30 );
p.Dispose();

你可能感兴趣的:(编程,开发,C#)