PathGradientBrush

PathGradientBrush class

Encapsulates a Brush object that fills the interior of a GraphicsPath object with a gradient. This class cannot be inherited.

public sealed class PathGradientBrush : Brush

Constructors

Name Description
PathGradientBrush(GraphicsPath) Initializes a new instance of the PathGradientBrush class with the specified path.
PathGradientBrush(PointF[]) Initializes a new instance of the PathGradientBrush class with the specified points.
PathGradientBrush(Point[]) Initializes a new instance of the PathGradientBrush class with the specified points.
PathGradientBrush(PointF[], WrapMode) 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.

Properties

Name Description
Blend { get; set; } Gets or sets a Blend that specifies positions and factors that define a custom falloff for the gradient.
CenterColor { get; set; } Gets or sets the color at the center of the path gradient.
CenterPoint { get; set; } Gets or sets the center point of the path gradient.
FocusScales { get; set; } Gets or sets the focus point for the gradient falloff.
InterpolationColors { get; set; } Gets or sets a ColorBlend that defines a multicolor linear gradient.
Rectangle { get; } Gets a bounding rectangle for this PathGradientBrush.
SurroundColors { get; set; } Gets or sets an array of colors that correspond to the points in the path this PathGradientBrush fills.
Transform { get; set; } Gets or sets a copy of the Matrix that defines a local geometric transform for this PathGradientBrush.
WrapMode { get; set; } Gets or sets a WrapMode that indicates the wrap mode for this PathGradientBrush.

Methods

Name Description
override Clone() Creates an exact copy of this PathGradientBrush.
Dispose() Releases all resources used by this Brush object.
MultiplyTransform(Matrix) Updates the brush’s transformation matrix with the product of brush’s transformation matrix multiplied by another matrix.
MultiplyTransform(Matrix, MatrixOrder) Updates the brush’s transformation matrix with the product of the brush’s transformation matrix multiplied by another matrix.
ResetTransform() Resets the Transform property to identity.
RotateTransform(float) Rotates the local geometric transform by the specified amount. This method prepends the rotation to the transform.
RotateTransform(float, MatrixOrder) Rotates the local geometric transform by the specified amount in the specified order.
ScaleTransform(float, float) Scales the local geometric transform by the specified amounts. This method prepends the scaling matrix to the transform.
ScaleTransform(float, float, MatrixOrder) Scales the local geometric transform by the specified amounts in the specified order.
SetBlendTriangularShape(float) Creates a gradient with a center color and a linear falloff to one surrounding color.
SetBlendTriangularShape(float, float) Creates a gradient with a center color and a linear falloff to each surrounding color.
SetSigmaBellShape(float) 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.
SetSigmaBellShape(float, float) 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.
TranslateTransform(float, float) Applies the specified translation to the local geometric transform. This method prepends the translation to the transform.
TranslateTransform(float, float, MatrixOrder) Applies the specified translation to the local geometric transform in the specified order.

See Also