LinearMulticolorGradientBrush Class
Represents a Brush with linear gradient defined by multiple colors and appropriate positions. This class cannot be inherited.
Inheritance Hierarchy

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

The LinearMulticolorGradientBrush type exposes the following members.

Constructors
  NameDescription
Public methodLinearMulticolorGradientBrush
Initializes a new instance of the LinearMulticolorGradientBrush class with default parameters. The starting color is black, the ending color is white, the angle is 45 degrees and the rectangle is located in (0,0) with size (1,1).
Public methodLinearMulticolorGradientBrush(Point, Point)
Initializes a new instance of the LinearMulticolorGradientBrush class with the specified points.
Public methodLinearMulticolorGradientBrush(PointF, PointF)
Initializes a new instance of the LinearMulticolorGradientBrush class with the specified points.
Public methodLinearMulticolorGradientBrush(Rectangle, Single)
Initializes a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.
Public methodLinearMulticolorGradientBrush(RectangleF, Single)
Initializes a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.
Public methodLinearMulticolorGradientBrush(Rectangle, Single, Boolean)
Initializes a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.
Public methodLinearMulticolorGradientBrush(RectangleF, Single, Boolean)
Initializes a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.
Properties
  NameDescription
Public propertyAngle
Gets or sets the gradient angle.
(Inherited from LinearGradientBrushBase.)
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.
(Inherited from LinearGradientBrushBase.)
Public propertyInterpolationColors
Gets or sets a ColorBlend that defines a multicolor linear gradient.
Public propertyIsAngleScalable
Gets or sets a value indicating whether Angle is changed during trasnformations with this LinearGradientBrushBase.
(Inherited from 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.
(Inherited from LinearGradientBrushBase.)
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.)
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.)
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 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.)
See Also