PathGradientBrush Class
Encapsulates a Brush object with a gradient. This class cannot be inherited.
Inheritance Hierarchy

Namespace: Aspose.PSD.Brushes
Assembly: Aspose.PSD (in Aspose.PSD.dll) Version: 23.4
Syntax
[SerializableAttribute]
public sealed class PathGradientBrush : PathGradientBrushBase

The PathGradientBrush type exposes the following members.

Constructors
  NameDescription
Public methodPathGradientBrush(GraphicsPath)
Initializes a new instance of the PathGradientBrush class with the specified path.
Public methodPathGradientBrush(Point)
Initializes a new instance of the PathGradientBrush class with the specified points.
Public methodPathGradientBrush(PointF)
Initializes a new instance of the PathGradientBrush class with the specified points.
Public methodPathGradientBrush(Point, WrapMode)
Initializes a new instance of the PathGradientBrush class with the specified points and wrap mode.
Public methodPathGradientBrush(PointF, WrapMode)
Initializes a new instance of the PathGradientBrush class with the specified points and wrap mode.
Properties
  NameDescription
Public propertyBlend
Gets or sets a Blend that specifies positions and factors that define a custom falloff for the gradient.
Public propertyCenterColor
Gets or sets the color at the center of the path gradient.
Public propertyCenterPoint
Gets or sets the center point of the path gradient.
(Inherited from PathGradientBrushBase.)
Public propertyDisposed
Gets a value indicating whether this instance is disposed.
(Inherited from DisposableObject.)
Public propertyFocusScales
Gets or sets the focus point for the gradient falloff.
(Inherited from PathGradientBrushBase.)
Public propertyGraphicsPath
Gets the graphics path this brush was build upon.
(Inherited from PathGradientBrushBase.)
Public propertyInterpolationColors Obsolete.
Gets or sets a ColorBlend that defines a multicolor linear gradient.
Public propertyIsTransformChanged
Gets a value indicating whether transformations were changed in some way. For example setting the transformation matrix or calling any of the methods altering the transformation matrix. The property is introduced for backward compatibility with GDI+.
(Inherited from TransformBrush.)
Public propertyOpacity
Gets or sets the brush opacity. The value should be between 0 and 1. Value of 0 means that brush is fully visible, value of 1 means the brush is fully opaque.
(Inherited from Brush.)
Public propertyPathPoints
Gets the path points this brush was build upon.
(Inherited from PathGradientBrushBase.)
Public propertySurroundColors
Gets or sets an array of colors that correspond to the points in the path this PathGradientBrush fills.
Public propertyTransform
Gets or sets a copy Matrix that defines a local geometric transform for this TransformBrush.
(Inherited from TransformBrush.)
Public propertyWrapMode
Gets or sets a WrapMode enumeration that indicates the wrap mode for this TransformBrush.
(Inherited from TransformBrush.)
Methods
  NameDescription
Public methodDeepClone
Creates a new deep clone of the current Brush.
(Inherited from Brush.)
Public methodDispose
Disposes the current instance.
(Inherited from DisposableObject.)
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodMultiplyTransform(Matrix)
Multiplies the Matrix that represents the local geometric transform of this LinearGradientBrush by the specified Matrix by prepending the specified Matrix.
(Inherited from TransformBrush.)
Public methodMultiplyTransform(Matrix, MatrixOrder)
Multiplies the Matrix that represents the local geometric transform of this LinearGradientBrush by the specified Matrix in the specified order.
(Inherited from TransformBrush.)
Public methodResetTransform
Resets the Transform property to identity.
(Inherited from TransformBrush.)
Public methodRotateTransform(Single)
Rotates the local geometric transform by the specified amount. This method prepends the rotation to the transform.
(Inherited from TransformBrush.)
Public methodRotateTransform(Single, MatrixOrder)
Rotates the local geometric transform by the specified amount in the specified order.
(Inherited from TransformBrush.)
Public methodScaleTransform(Single, Single)
Scales the local geometric transform by the specified amounts. This method prepends the scaling matrix to the transform.
(Inherited from TransformBrush.)
Public methodScaleTransform(Single, Single, MatrixOrder)
Scales the local geometric transform by the specified amounts in the specified order.
(Inherited from TransformBrush.)
Public methodSetBlendTriangularShape(Single)
Creates a gradient with a center color and a linear falloff to one surrounding color.
Public methodSetBlendTriangularShape(Single, Single)
Creates a gradient with a center color and a linear falloff to each surrounding color.
Public methodSetSigmaBellShape(Single)
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 methodSetSigmaBellShape(Single, Single)
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 methodToString (Inherited from Object.)
Public methodTranslateTransform(Single, Single)
Translates the local geometric transform by the specified dimensions. This method prepends the translation to the transform.
(Inherited from TransformBrush.)
Public methodTranslateTransform(Single, Single, MatrixOrder)
Translates the local geometric transform by the specified dimensions in the specified order.
(Inherited from TransformBrush.)
Remarks

The center color is white by default. A user can changed this value at any time later.

The surround colors array is initialized by single element containing white color by default. The surround colors may be changed later, however at least single element is required when setting up the surround colors.

See the Blend for more details about its initialization.

See Also