public void FillPolygon(Brush brush, PointF [] points, FillMode fillMode = FillMode.Alternate) { if (brush == null) throw new ArgumentNullException ("brush"); if (points == null) throw new ArgumentNullException ("points"); PolygonSetup (points); FillBrush (brush, fillMode); }
static protected void DrawBrick (Graphics graphics, Brush b1, Brush b2, Brush b3) { if (graphics == null) return; graphics.FillPolygon (b1, brickPoints1); graphics.FillPolygon (b2, brickPoints2); graphics.FillPolygon (b3, brickPoints3); }