j'ai dessiné dans une picturebox un polygone avec le code:
je veux savoir si il y a une méthode pour savoir si un point(x,y) est à l’intérieur du polygone,
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 Graphics g = e.Graphics; { Point[] points = { new Point(ax, ay), new Point(bx, by), new Point(cx, cy), new Point(dx, dy), new Point(ex, ey) }; g.FillPolygon(new SolidBrush(Color.Azure), points); }
merci.
Partager