g.SmoothingMode = SmoothingMode.AntiAlias;
Point[] p1 = new Point[]{
new Point(0,0),
new Point(0,100),
new Point(100,100),
new Point(100,0),
new Point(200,10),
new Point(100,200)
};
GraphicsPath gPath1= new GraphicsPath();
gPath1.AddLines(p1);
g.DrawPath(new Pen(Color.Black), path);
g.SmoothingMode = SmoothingMode.AntiAlias;
Point[] p1 = new Point[]{
new Point(0,0),
new Point(0,100),
new Point(100,100),
new Point(100,0),
new Point(200,10),
new Point(100,200)
};
Point[] p2 = new Point[]{
new Point(10,10),
new Point(10,90),
new Point(90,90),
new Point(90,10),new Point(10,10),
};
GraphicsPath gPath1= new GraphicsPath();
gPath1.AddLines(p1);
GraphicsPath gPath2 = new GraphicsPath();
gPath2.AddLines(p2);
GraphicsPath path = new GraphicsPath();
path.AddPath(gPath1, false);
path.AddPath(gPath2, false);
g.DrawPath(new Pen(Color.Black), path)