// Fill the interior of a path. public void FillPath(Brush brush, GraphicsPath path) { if(brush == null) { throw new ArgumentNullException("brush"); } if(path == null) { throw new ArgumentNullException("path"); } // Bail out now if there's nothing to draw. if((brush is SolidBrush) && ((SolidBrush)brush).Color.A == 0) { return; } path.Fill(this, brush); }