我想使用三个鼠标点在我的表格上画一个圆弧。是否可能
我有以下示例代码,部分工作
private void Form1_MouseDown(object sender, MouseEventArgs e)
{
if(e.Button == MouseButtons.Left)
{
points.Add(e.Location); // adding points to my list "points" for each mouse click
if (points.Count == 3)
{
gp.AddCurve(points.ToArray()); // gp = graphics path object
gp.StartFigure();
g.DrawPath(new Pen(Color.Blue,3), gp); // g is the graphics object
g.Dispose();
}
}
}
请给我一个解决方案提前致谢