Table of Contents

Class GradientBrush

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Base class for gradient brushes.

public abstract class GradientBrush : Brush, IBaseObject, IDisposableObject, IDisposable, INotifyPropertyChanged, IEquatable<Brush>
Inheritance
GradientBrush
Implements
Derived

Constructors

GradientBrush(GradientStop[], bool)

Initializes a new instance of the Brush class.

Properties

AsColor

Gets color of the brush.

GradientStops

Gets or sets the GradientStop instances array defining the color transition in this brush.

LocalMatrix

Gets or sets SKMatrix for this brush.

TileMode

Gets or sets SKShaderTileMode for this brush.

Methods

CreateSkiaPaint()

Creates SKPaint for this brush.

CreateSkiaShader()

Creates SKShader for this radial gradient brush.

Equals(object?)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Serves as the default hash function.

GradientStopsFromEdgeColors(Color, Color)

Converts two colors to array of GradientStop.

ToGradientColors(GradientStop[])

Converts array of GradientStop to array of Color.

ToGradientOffsets(GradientStop[])

Converts array of GradientStop to array of gradient offsets.

ToGradientOffsetsF(GradientStop[])

Converts array of GradientStop to array of gradient offsets.

ToSkiaGradientColors(GradientStop[])

Converts array of GradientStop to array of SKColor.

ToString(GradientStop[])

Converts array of GradientStop to string.