GraphicsPath Constructors

Definition

Initializes a new instance of the GraphicsPath class with a FillMode enumeration of Alternate.

Overloads

GraphicsPath()

Initializes a new instance of the GraphicsPath class with a FillMode value of Alternate.

GraphicsPath(FillMode)

Initializes a new instance of the GraphicsPath class with the specified FillMode enumeration.

GraphicsPath(Point[], Byte[])

Initializes a new instance of the GraphicsPath class with the specified PathPointType and Point arrays.

GraphicsPath(PointF[], Byte[])

Initializes a new instance of the GraphicsPath array with the specified PathPointType and PointF arrays.

GraphicsPath(Point[], Byte[], FillMode)

Initializes a new instance of the GraphicsPath class with the specified PathPointType and Point arrays and with the specified FillMode enumeration element.

GraphicsPath(PointF[], Byte[], FillMode)

Initializes a new instance of the GraphicsPath array with the specified PathPointType and PointF arrays and with the specified FillMode enumeration element.

GraphicsPath(ReadOnlySpan<Point>, ReadOnlySpan<Byte>, FillMode)

Initializes a new instance of the GraphicsPath class with the specified PathPointType and Point arrays and with the specified FillMode enumeration element.

GraphicsPath(ReadOnlySpan<PointF>, ReadOnlySpan<Byte>, FillMode)

Initializes a new instance of the GraphicsPath class with the specified PathPointType and Point arrays and with the specified FillMode enumeration element.

GraphicsPath()

Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs

Initializes a new instance of the GraphicsPath class with a FillMode value of Alternate.

C#
public GraphicsPath();

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GraphicsPath(FillMode)

Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs

Initializes a new instance of the GraphicsPath class with the specified FillMode enumeration.

C#
public GraphicsPath(System.Drawing.Drawing2D.FillMode fillMode);

Parameters

fillMode
FillMode

The FillMode enumeration that determines how the interior of this GraphicsPath is filled.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GraphicsPath(Point[], Byte[])

Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs

Initializes a new instance of the GraphicsPath class with the specified PathPointType and Point arrays.

C#
public GraphicsPath(System.Drawing.Point[] pts, byte[] types);

Parameters

pts
Point[]

An array of Point structures that defines the coordinates of the points that make up this GraphicsPath.

types
Byte[]

An array of PathPointType enumeration elements that specifies the type of each corresponding point in the pts array.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GraphicsPath(PointF[], Byte[])

Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs

Initializes a new instance of the GraphicsPath array with the specified PathPointType and PointF arrays.

C#
public GraphicsPath(System.Drawing.PointF[] pts, byte[] types);

Parameters

pts
PointF[]

An array of PointF structures that defines the coordinates of the points that make up this GraphicsPath.

types
Byte[]

An array of PathPointType enumeration elements that specifies the type of each corresponding point in the pts array.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GraphicsPath(Point[], Byte[], FillMode)

Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs

Initializes a new instance of the GraphicsPath class with the specified PathPointType and Point arrays and with the specified FillMode enumeration element.

C#
public GraphicsPath(System.Drawing.Point[] pts, byte[] types, System.Drawing.Drawing2D.FillMode fillMode);

Parameters

pts
Point[]

An array of Point structures that defines the coordinates of the points that make up this GraphicsPath.

types
Byte[]

An array of PathPointType enumeration elements that specifies the type of each corresponding point in the pts array.

fillMode
FillMode

A FillMode enumeration that specifies how the interiors of shapes in this GraphicsPath are filled.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GraphicsPath(PointF[], Byte[], FillMode)

Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs

Initializes a new instance of the GraphicsPath array with the specified PathPointType and PointF arrays and with the specified FillMode enumeration element.

C#
public GraphicsPath(System.Drawing.PointF[] pts, byte[] types, System.Drawing.Drawing2D.FillMode fillMode);

Parameters

pts
PointF[]

An array of PointF structures that defines the coordinates of the points that make up this GraphicsPath.

types
Byte[]

An array of PathPointType enumeration elements that specifies the type of each corresponding point in the pts array.

fillMode
FillMode

A FillMode enumeration that specifies how the interiors of shapes in this GraphicsPath are filled.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GraphicsPath(ReadOnlySpan<Point>, ReadOnlySpan<Byte>, FillMode)

Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs

Initializes a new instance of the GraphicsPath class with the specified PathPointType and Point arrays and with the specified FillMode enumeration element.

C#
public GraphicsPath(ReadOnlySpan<System.Drawing.Point> pts, ReadOnlySpan<byte> types, System.Drawing.Drawing2D.FillMode fillMode = System.Drawing.Drawing2D.FillMode.Alternate);

Parameters

pts
ReadOnlySpan<Point>

An array of Point structures that defines the coordinates of the points that make up this GraphicsPath.

types
ReadOnlySpan<Byte>

An array of PathPointType enumeration elements that specifies the type of each corresponding point in the pts array.

fillMode
FillMode

A FillMode enumeration that specifies how the interiors of shapes in this GraphicsPath are filled.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 9 (package-provided), 10 (package-provided)
Windows Desktop 9, 10

GraphicsPath(ReadOnlySpan<PointF>, ReadOnlySpan<Byte>, FillMode)

Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs

Initializes a new instance of the GraphicsPath class with the specified PathPointType and Point arrays and with the specified FillMode enumeration element.

C#
public GraphicsPath(ReadOnlySpan<System.Drawing.PointF> pts, ReadOnlySpan<byte> types, System.Drawing.Drawing2D.FillMode fillMode = System.Drawing.Drawing2D.FillMode.Alternate);

Parameters

pts
ReadOnlySpan<PointF>

An array of Point structures that defines the coordinates of the points that make up this GraphicsPath.

types
ReadOnlySpan<Byte>

An array of PathPointType enumeration elements that specifies the type of each corresponding point in the pts array.

fillMode
FillMode

A FillMode enumeration that specifies how the interiors of shapes in this GraphicsPath are filled.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 9 (package-provided), 10 (package-provided)
Windows Desktop 9, 10