// Draw a path object. public void DrawPath(Pen pen, GraphicsPath path) { if(pen == null) { throw new ArgumentNullException("pen"); } if(path == null) { throw new ArgumentNullException("path"); } // Bail out now if there's nothing to draw. if(pen.PenType == PenType.SolidColor && pen.Color.A == 0) { return; } path.Draw(this, pen); }