bool G_MouseFlag; Pen pen = new Pen(Color.Black); Point lastPoint; private void _018_MouseMove(object sender, MouseEventArgs e) { Graphics graphics = this.CreateGraphics(); if (lastPoint.Equals(Point.Empty))//判断绘图开始点是否为空 { lastPoint = new Point(e.X, e.Y);
C#利用鼠标绘图
最新推荐文章于 2024-06-14 01:04:49 发布