public void FillRectangles(Brush brush, Rectangle [] rects)
{
if (brush == null)
throw new ArgumentNullException ("brush");
if (rects == null)
throw new ArgumentNullException ("rects");
foreach (var rect in rects)
RectanglePath (rect.X, rect.Y, rect.Right, rect.Bottom);
FillBrush (brush);
}