Beispiel #1
0
        private static void DrawMe(Graphics g, PointF loc, PathDefinition[] pathDef)
        {
            using (GraphicsPath path = new GraphicsPath()) {
                path.AddPolys(pathDef);
                path.FillMode = FillMode.Alternate;

                GraphicsState gs = g.Save();
                g.TranslateTransform(loc.X, loc.Y);
                g.FillPath(Brushes.Black, path);
                g.Restore(gs);
            }
        }