我的程序可以使用canvas.Drawline()绘制线条.如何点击线并更改此颜色(选择线)?
private List<Point> coordFirst = new List<Point>();
private List<Point> coordLast = new List<Point>();
public Graphics canvas;
private void Form1_Load(object sender, EventArgs e)
{
canvas=panel1.CreateGraphics();
}
Run Code Online (Sandbox Code Playgroud)
存储在coordFirs和coodLast中的坐标线.