Class LinearMulticolorGradientBrush
Namespace: Aspose.Imaging.Brushes
Assembly: Aspose.Imaging.dll (25.2.0)
Represents a Aspose.Imaging.Brush with linear gradient defined by multiple colors and appropriate positions. This class cannot be inherited.
[JsonObject(MemberSerialization.OptIn)]
public sealed class LinearMulticolorGradientBrush : LinearGradientBrushBase, IDisposable
Inheritance
object ← DisposableObject ← Brush ← TransformBrush ← LinearGradientBrushBase ← LinearMulticolorGradientBrush
Implements
Inherited Members
LinearGradientBrushBase.Rectangle, LinearGradientBrushBase.Angle, LinearGradientBrushBase.IsAngleScalable, LinearGradientBrushBase.GammaCorrection, TransformBrush.ResetTransform(), TransformBrush.MultiplyTransform(Matrix), TransformBrush.MultiplyTransform(Matrix, MatrixOrder), TransformBrush.TranslateTransform(float, float), TransformBrush.TranslateTransform(float, float, MatrixOrder), TransformBrush.ScaleTransform(float, float), TransformBrush.ScaleTransform(float, float, MatrixOrder), TransformBrush.RotateTransform(float), TransformBrush.RotateTransform(float, MatrixOrder), TransformBrush.WrapMode, TransformBrush.Transform, TransformBrush.IsTransformChanged, Brush.DeepClone(), Brush.Equals(object), Brush.GetHashCode(), Brush.Opacity, DisposableObject.Dispose(), DisposableObject.Disposed, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
LinearMulticolorGradientBrush()
Initializes a new instance of the Aspose.Imaging.Brushes.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 LinearMulticolorGradientBrush()
LinearMulticolorGradientBrush(Point, Point)
Initializes a new instance of the Aspose.Imaging.Brushes.LinearMulticolorGradientBrush class with the specified points.
public LinearMulticolorGradientBrush(Point point1, Point point2)
Parameters
point1
Point
A Aspose.Imaging.Point structure that represents the starting point of the linear gradient.
point2
Point
A Aspose.Imaging.Point structure that represents the endpoint of the linear gradient.
LinearMulticolorGradientBrush(PointF, PointF)
Initializes a new instance of the Aspose.Imaging.Brushes.LinearMulticolorGradientBrush class with the specified points.
public LinearMulticolorGradientBrush(PointF point1, PointF point2)
Parameters
point1
PointF
A Aspose.Imaging.PointF structure that represents the starting point of the linear gradient.
point2
PointF
A Aspose.Imaging.PointF structure that represents the endpoint of the linear gradient.
LinearMulticolorGradientBrush(Rectangle, float)
Initializes a new instance of the Aspose.Imaging.Brushes.LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.
public LinearMulticolorGradientBrush(Rectangle rect, float angle)
Parameters
rect
Rectangle
A Aspose.Imaging.RectangleF structure that specifies the bounds of the linear gradient.
angle
float
The angle, measured in degrees clockwise from the x-axis, of the gradient’s orientation line.
LinearMulticolorGradientBrush(RectangleF, float)
Initializes a new instance of the Aspose.Imaging.Brushes.LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.
public LinearMulticolorGradientBrush(RectangleF rect, float angle)
Parameters
rect
RectangleF
A Aspose.Imaging.RectangleF structure that specifies the bounds of the linear gradient.
angle
float
The angle, measured in degrees clockwise from the x-axis, of the gradient’s orientation line.
LinearMulticolorGradientBrush(Rectangle, float, bool)
Initializes a new instance of the Aspose.Imaging.Brushes.LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.
public LinearMulticolorGradientBrush(Rectangle rect, float angle, bool isAngleScalable)
Parameters
rect
Rectangle
A Aspose.Imaging.RectangleF structure that specifies the bounds of the linear gradient.
angle
float
The angle, measured in degrees clockwise from the x-axis, of the gradient’s orientation line.
isAngleScalable
bool
if set to true
the angle is changed during transformations with this Aspose.Imaging.Brushes.LinearMulticolorGradientBrush.
LinearMulticolorGradientBrush(RectangleF, float, bool)
Initializes a new instance of the Aspose.Imaging.Brushes.LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.
public LinearMulticolorGradientBrush(RectangleF rect, float angle, bool isAngleScalable)
Parameters
rect
RectangleF
A Aspose.Imaging.RectangleF structure that specifies the bounds of the linear gradient.
angle
float
The angle, measured in degrees clockwise from the x-axis, of the gradient’s orientation line.
isAngleScalable
bool
if set to true
the angle is changed during transformations with this Aspose.Imaging.Brushes.LinearMulticolorGradientBrush.
Properties
InterpolationColors
Gets or sets a Aspose.Imaging.ColorBlend that defines a multicolor linear gradient.
public ColorBlend InterpolationColors { get; set; }