大家好!!我是一新手!!请大家多多关照!我在窗体上画了一个多边形,想确定在鼠标点击窗体的时候,鼠标点击的那点是否在所画的多边形内,这个要怎么做啊!!请大家多多帮忙!! Graphics g = this.CreateGraphics(); Pen p = new Pen(Color.Red); Point p1 = new Point(5,285); Point p2 = new Point(269,183); Point p3 = new Point(398,292); Point p4 = new Point(815,362); Point p5 = new Point(814,578); Point p6 = new Point(261,578); Point p7 = new Point(2,404); Point[] pa ={ p1, p2, p3, p4, p5, p6, p7 }; g.DrawPolygon(p,pa);
- 2 回答
- 0 关注
- 397 浏览
添加回答
举报
0/150
提交
取消