PathGradientBrushBase Class
Represents a Brush with base path gradient functionality.
Inheritance Hierarchy

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

The PathGradientBrushBase type exposes the following members.

Constructors
  NameDescription
Protected methodPathGradientBrushBase(GraphicsPath)
Initializes a new instance of the PathGradientBrushBase class with the specified path.
Protected methodPathGradientBrushBase(Point)
Initializes a new instance of the PathGradientBrushBase class with the specified points.
Protected methodPathGradientBrushBase(PointF)
Initializes a new instance of the PathGradientBrushBase class with the specified points.
Protected methodPathGradientBrushBase(Point, WrapMode)
Initializes a new instance of the PathGradientBrushBase class with the specified points and wrap mode.
Protected methodPathGradientBrushBase(PointF, WrapMode)
Initializes a new instance of the PathGradientBrushBase class with the specified points and wrap mode.
Properties
  NameDescription
Public propertyCenterPoint
Gets or sets the center point of the path gradient.
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.
Public propertyGraphicsPath
Gets the graphics path this brush was build upon.
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.
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.)
Protected methodFinalize (Inherited from DisposableObject.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (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.)
Protected methodReleaseManagedResources
Releases the managed resources. Make sure no unmanaged resources are released here, since they may have been already released.
(Inherited from DisposableObject.)
Protected methodReleaseUnmanagedResources
Releases the unmanaged resources. Make sure no managed resources are released here, since they may have been already released.
(Inherited from DisposableObject.)
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 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.)
Protected methodVerifyNotDisposed
Verifies that the current instance is not disposed.
(Inherited from DisposableObject.)
Remarks
Note that when creating the PathGradientBrushBase class it should be initialized with 2 points at least. The internal path created will always be a closed figure, the last point connects the first point. That shape is filled with this PathGradientBrushBase. The GDI+ implementation throws an OutOfMemoryException when passing in empty arrays or points set having the same coordinates. The PathGradientBrushBase throws an exception when points array contain less than 2 points, the ArgumentException is thrown rather than OutOfMemoryException when points array is unacceptable. The center point is calculated as a center of mass for the passed in points by default. A user can change this point later. The focus scales is an empty point (0.0, 0.0) by default.
See Also