public FillRectangles ( |
||
brush | ||
rects | ||
return | void |
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);
}
Graphics::FillRectangles ( |
public static void DrawRectangles(Graphics graphics, List<RectangleF> rectangles, Color color) { if (rectangles.Count > 0) { var brush = new SolidBrush(color); graphics.FillRectangles(brush, rectangles.ToArray()); } }