LinearGradientBrushBase Class
Represents a Brush with gradient capabilities and appropriate properties.
Inheritance Hierarchy

Namespace: Aspose.Imaging.Brushes
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 21.04
Syntax
[SerializableAttribute]
public abstract class LinearGradientBrushBase : TransformBrush

The LinearGradientBrushBase type exposes the following members.

Constructors
  NameDescription
Protected methodLinearGradientBrushBase
Initializes a new instance of the LinearGradientBrushBase class with default parameters. The angle is 45 degrees and the rectangle is located in (0,0) with size (1,1).
Protected methodLinearGradientBrushBase(Point, Point)
Initializes a new instance of the LinearGradientBrushBase class. The gradient rectangle is calculated from the specified points.
Protected methodLinearGradientBrushBase(PointF, PointF)
Initializes a new instance of the LinearGradientBrushBase class. The gradient rectangle is calculated from the specified points.
Protected methodLinearGradientBrushBase(Rectangle, Single, Boolean)
Initializes a new instance of the LinearGradientBrushBase class based on a rectangle and an orientation angle.
Protected methodLinearGradientBrushBase(RectangleF, Single, Boolean)
Initializes a new instance of the LinearGradientBrushBase class based on a rectangle, starting and ending colors, and an orientation angle.
Properties
  NameDescription
Public propertyAngle
Gets or sets the gradient angle.
Public propertyDisposed
Gets a value indicating whether this instance is disposed.
(Inherited from DisposableObject.)
Public propertyGammaCorrection
Gets or sets a value indicating whether gamma correction is enabled for this LinearGradientBrushBase.
Public propertyIsAngleScalable
Gets or sets a value indicating whether Angle is changed during trasnformations with this LinearGradientBrushBase.
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 propertyCode exampleOpacity
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 propertyRectangle
Gets or sets a rectangular region that defines the starting and ending points of the gradient.
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 methodCode exampleDispose
Disposes the current instance.
(Inherited from DisposableObject.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize (Inherited from DisposableObject.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(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
Returns a string that represents the current object.
(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.)
See Also