求大神指导: c#怎么用鼠标选中picturebox里面的点线
老舍长 2016-05-16 06:46:19 c#怎么用鼠标选中picturebox里面的点线(这些点线是我画的,画线用的是下面的代码)
(我是在windows窗体中编写的程序),例如:点了一个选择按钮,这个时候就可以选中picturebox里面的点线。
Graphics g = Graphics.FromImage((Image)bmp);
g.DrawLine(new Pen(Color.Red, 1), Pt[i], Pt[i + 1]);