111,131
社区成员
发帖
与我相关
我的任务
分享
// 创建一个自定义的形状
GraphicsPath arrowPath = new GraphicsPath();
arrowPath.AddLine(new Point(-2, -3), new Point(0, 0));
arrowPath.AddLine(new Point(0, 0), new Point(+2, -3));
// 创建画笔,并指定线尾的形状。
Pen pen = new Pen(Color.DarkCyan, 3);
pen.EndCap = LineCap.Custom;
pen.CustomEndCap = new CustomLineCap(null, arrowPath);
// 画弧
e.Graphics.DrawArc(pen, 0,0,100,200, 45, 270);