PtInRgn
C#
2
Posts
2
Posters
0
Views
1
Watching
-
I want to check out if the point is in region or not, does C# have the same function as C++ PtInRgn??? And another conditions - point on line, point on point...
-
I want to check out if the point is in region or not, does C# have the same function as C++ PtInRgn??? And another conditions - point on line, point on point...
For a point in a Region:
Region.IsVisible
For a point in a GraphicsPath:GraphicsPath.IsVisible
orGraphicsPath.IsOutlineVisible
For a point in a Rectangle:Rectangle.Contains
For a point on a Point:Point.Equals
For a point on a line: dunno, maybe add a line to graphicspath and thenGraphicsPath.IsOutlineVisible
? Hope this helps! :cool: