Graphics.FillClosedCurve Method (Brush, PointF, FillMode)
Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode.
Assembly: System.Drawing (in System.Drawing.dll)
brush is a null reference (Nothing in Visual Basic).
points is a null reference (Nothing in Visual Basic).
This method fills the interior of a closed cardinal spline that passes through each point in the array. If the last point does not match the first point, an additional curve segment is added from the last point to the first point to close it.
The array of points must contain at least four Point structures.
This method uses a default tension of 0.5.
Creates a solid red brush.
Creates an array of four points to define a spline.
Sets the fill mode to Winding.
Fills the curve on the screen.
The curve has a default tension of 0.5.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.