public void DrawPath(SolidColor color, GraphicsPath graphicsPath) { if (!color.IsTransparent) { var p = this.resourceManager.GetPen(color.ToSolidColor()); if (p != null) { g.DrawPath(p, graphicsPath); } } }