<PackageReference Include="System.Drawing.Common" Version="8.0.11" />

PathGradientBrush

public sealed class PathGradientBrush : Brush
Encapsulates a Brush object that fills the interior of a GraphicsPath object with a gradient. This class cannot be inherited.
public Blend Blend { get; set; }

Gets or sets a Blend that specifies positions and factors that define a custom falloff for the gradient.

public Color CenterColor { get; set; }

Gets or sets the color at the center of the path gradient.

public PointF CenterPoint { get; set; }

Gets or sets the center point of the path gradient.

public PointF FocusScales { get; set; }

Gets or sets the focus point for the gradient falloff.

public ColorBlend InterpolationColors { get; set; }

Gets or sets a ColorBlend that defines a multicolor linear gradient.

public RectangleF Rectangle { get; }

Gets a bounding rectangle for this PathGradientBrush.

public Color[] SurroundColors { get; set; }

Gets or sets an array of colors that correspond to the points in the path this PathGradientBrush fills.

public Matrix Transform { get; set; }

Gets or sets a copy of the Matrix that defines a local geometric transform for this PathGradientBrush.

public WrapMode WrapMode { get; set; }

Gets or sets a WrapMode that indicates the wrap mode for this PathGradientBrush.

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

public PathGradientBrush(PointF[] points)

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

public PathGradientBrush(PointF[] points, WrapMode wrapMode)

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

public PathGradientBrush(Point[] points)

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

public PathGradientBrush(Point[] points, WrapMode wrapMode)

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

public void MultiplyTransform(Matrix matrix)

Updates the brush's transformation matrix with the product of brush's transformation matrix multiplied by another matrix.

public void MultiplyTransform(Matrix matrix, MatrixOrder order)

Updates the brush's transformation matrix with the product of the brush's transformation matrix multiplied by another matrix.

public void ResetTransform()

Resets the Transform property to identity.

public void RotateTransform(float angle)

Rotates the local geometric transform by the specified amount. This method prepends the rotation to the transform.

public void RotateTransform(float angle, MatrixOrder order)

Rotates the local geometric transform by the specified amount in the specified order.

public void ScaleTransform(float sx, float sy)

Scales the local geometric transform by the specified amounts. This method prepends the scaling matrix to the transform.

public void ScaleTransform(float sx, float sy, MatrixOrder order)

Scales the local geometric transform by the specified amounts in the specified order.

public void SetBlendTriangularShape(float focus)

Creates a gradient with a center color and a linear falloff to one surrounding color.

public void SetBlendTriangularShape(float focus, float scale)

Creates a gradient with a center color and a linear falloff to each surrounding color.

public void SetSigmaBellShape(float focus)

Creates a gradient brush that changes color starting from the center of the path outward to the path's boundary. The transition from one color to another is based on a bell-shaped curve.

public void SetSigmaBellShape(float focus, float scale)

Creates a gradient brush that changes color starting from the center of the path outward to the path's boundary. The transition from one color to another is based on a bell-shaped curve.

public void TranslateTransform(float dx, float dy)

Applies the specified translation to the local geometric transform. This method prepends the translation to the transform.

public void TranslateTransform(float dx, float dy, MatrixOrder order)

Applies the specified translation to the local geometric transform in the specified order.