Class GradientBrush
Base class for Gradient brushes
Inheritance
GradientBrush
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public abstract class GradientBrush : Brush
Constructors
| Improve this Doc View SourceGradientBrush(GradientRepetitionMode, ColorStop[])
Declaration
protected GradientBrush(GradientRepetitionMode repetitionMode, params ColorStop[] colorStops)
Parameters
Type | Name | Description |
---|---|---|
GradientRepetitionMode | repetitionMode | Defines how the colors are repeated beyond the interval [0..1] |
ColorStop[] | colorStops | The gradient colors. |
Properties
| Improve this Doc View SourceColorStops
Gets the list of color stops for this gradient.
Declaration
protected ColorStop[] ColorStops { get; }
Property Value
Type | Description |
---|---|
ColorStop[] |
RepetitionMode
Gets how the colors are repeated beyond the interval [0..1].
Declaration
protected GradientRepetitionMode RepetitionMode { get; }
Property Value
Type | Description |
---|---|
GradientRepetitionMode |
Methods
| Improve this Doc View SourceEquals(Brush)
Declaration
public override bool Equals(Brush other)
Parameters
Type | Name | Description |
---|---|---|
Brush | other |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |