GDI+ :How to judge a point in the path.
C#
1
Posts
1
Posters
0
Views
1
Watching
-
:^)use the code list: p1.X = 10; p1.Y = 15; p2.X = 68; p2.Y = 100; path.AddLine(p1, p2); g = this.panel1.CreateGraphics(); g.DrawPath(Pens.Black, path); Then,I draw a line on the graphic.In the event of Mouse_Move,I catch any point and want to know whether the point in the path of the line. So I use the funcation of GraphicsPath.IsVisible(),but whenever the funcation always return false. Can you help me? Thanks!