System.Drawing.Graphics.FillPolygon C# (CSharp) Method

FillPolygon() public method

public FillPolygon ( Brush brush, PointF points, FillMode fillMode = FillMode.Alternate ) : void
brush Brush
points PointF
fillMode FillMode
return void
        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);
        }

Same methods

Graphics::FillPolygon ( Brush brush, Point points, FillMode fillMode = FillMode.Alternate ) : void

Usage Example

		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);
		}
All Usage Examples Of System.Drawing.Graphics::FillPolygon