PathGradientBrush Constructors

Definition

Initializes a new instance of the PathGradientBrush class with the specified path.

Overloads

PathGradientBrush(GraphicsPath)

Initializes a new instance of the PathGradientBrush class with the specified path.

PathGradientBrush(Point[])

Initializes a new instance of the PathGradientBrush class with the specified points.

PathGradientBrush(PointF[])

Initializes a new instance of the PathGradientBrush class with the specified points.

PathGradientBrush(ReadOnlySpan<Point>)

Initializes a new instance of the PathGradientBrush class with the specified points.

PathGradientBrush(ReadOnlySpan<PointF>)

Initializes a new instance of the PathGradientBrush class with the specified points.

PathGradientBrush(WrapMode, ReadOnlySpan<Point>)

Initializes a new instance of the PathGradientBrush class with the specified points and wrap mode.

PathGradientBrush(WrapMode, ReadOnlySpan<PointF>)

Initializes a new instance of the PathGradientBrush class with the specified points and wrap mode.

PathGradientBrush(Point[], WrapMode)

Initializes a new instance of the PathGradientBrush class with the specified points and wrap mode.

PathGradientBrush(PointF[], WrapMode)

Initializes a new instance of the PathGradientBrush class with the specified points and wrap mode.

PathGradientBrush(GraphicsPath)

Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs

Initializes a new instance of the PathGradientBrush class with the specified path.

C#
public PathGradientBrush(System.Drawing.Drawing2D.GraphicsPath path);

Parameters

path
GraphicsPath

The GraphicsPath that defines the area filled by this PathGradientBrush.

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

PathGradientBrush(Point[])

Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs

Initializes a new instance of the PathGradientBrush class with the specified points.

C#
public PathGradientBrush(params System.Drawing.Point[] points);
C#
public PathGradientBrush(System.Drawing.Point[] points);

Parameters

points
Point[]

An array of Point structures that represents the points that make up the vertices of the path.

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

PathGradientBrush(PointF[])

Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs

Initializes a new instance of the PathGradientBrush class with the specified points.

C#
public PathGradientBrush(params System.Drawing.PointF[] points);
C#
public PathGradientBrush(System.Drawing.PointF[] points);

Parameters

points
PointF[]

An array of PointF structures that represents the points that make up the vertices of the path.

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

PathGradientBrush(ReadOnlySpan<Point>)

Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs

Initializes a new instance of the PathGradientBrush class with the specified points.

C#
public PathGradientBrush(scoped ReadOnlySpan<System.Drawing.Point> points);

Parameters

points
ReadOnlySpan<Point>

An array of PointF structures that represents the points that make up the vertices of the path.

Applies to

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

PathGradientBrush(ReadOnlySpan<PointF>)

Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs

Initializes a new instance of the PathGradientBrush class with the specified points.

C#
public PathGradientBrush(scoped ReadOnlySpan<System.Drawing.PointF> points);

Parameters

points
ReadOnlySpan<PointF>

An array of PointF structures that represents the points that make up the vertices of the path.

Applies to

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

PathGradientBrush(WrapMode, ReadOnlySpan<Point>)

Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs

Initializes a new instance of the PathGradientBrush class with the specified points and wrap mode.

C#
public PathGradientBrush(System.Drawing.Drawing2D.WrapMode wrapMode, scoped ReadOnlySpan<System.Drawing.Point> points);

Parameters

wrapMode
WrapMode

A WrapMode that specifies how fills drawn with this PathGradientBrush are tiled.

points
ReadOnlySpan<Point>

An array of PointF structures that represents the points that make up the vertices of the path.

Applies to

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

PathGradientBrush(WrapMode, ReadOnlySpan<PointF>)

Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs

Initializes a new instance of the PathGradientBrush class with the specified points and wrap mode.

C#
public PathGradientBrush(System.Drawing.Drawing2D.WrapMode wrapMode, scoped ReadOnlySpan<System.Drawing.PointF> points);

Parameters

wrapMode
WrapMode

A WrapMode that specifies how fills drawn with this PathGradientBrush are tiled.

points
ReadOnlySpan<PointF>

An array of PointF structures that represents the points that make up the vertices of the path.

Applies to

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

PathGradientBrush(Point[], WrapMode)

Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs

Initializes a new instance of the PathGradientBrush class with the specified points and wrap mode.

C#
public PathGradientBrush(System.Drawing.Point[] points, System.Drawing.Drawing2D.WrapMode wrapMode);

Parameters

points
Point[]

An array of Point structures that represents the points that make up the vertices of the path.

wrapMode
WrapMode

A WrapMode that specifies how fills drawn with this PathGradientBrush are tiled.

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

PathGradientBrush(PointF[], WrapMode)

Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs
Source:
PathGradientBrush.cs

Initializes a new instance of the PathGradientBrush class with the specified points and wrap mode.

C#
public PathGradientBrush(System.Drawing.PointF[] points, System.Drawing.Drawing2D.WrapMode wrapMode);

Parameters

points
PointF[]

An array of PointF structures that represents the points that make up the vertices of the path.

wrapMode
WrapMode

A WrapMode that specifies how fills drawn with this PathGradientBrush are tiled.

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