1.代码如下,我用一个顶点判断一直都是false ,不知道此方法是否这样用,谢谢!
GraphicsPath myGraphicsPath = new GraphicsPath();
myGraphicsPath.Reset();
Region myRegion = new Region();
PointF inputponint = new PointF(0.3147f, 0.3374f);
List<PointF> points = new List<PointF>();
points.Add(new PointF(0.3147f, 0.3374f));
points.Add(new PointF(0.3154f, 0.3323f));
points.Add(new PointF(0.3112f, 0.3282f));
points.Add(new PointF(0.3104f, 0.3330f));
myGraphicsPath.AddPolygon(points.ToArray());
myRegion.MakeEmpty();
myRegion.Union(myGraphicsPath);
bool ispass = myRegion.IsVisible(inputponint,this.CreateGraphics());