Table of Contents

Class ImmutableLinearGradientBrush

Namespace
Avalonia.Media.Immutable
Assembly
Avalonia.Base.dll

A brush that draws with a linear gradient.

public class ImmutableLinearGradientBrush : ImmutableGradientBrush, IImmutableBrush, ILinearGradientBrush, IGradientBrush, IBrush
Inheritance
ImmutableLinearGradientBrush
Implements
Inherited Members
Extension Methods

Constructors

ImmutableLinearGradientBrush(LinearGradientBrush)

Initializes a new instance of the ImmutableLinearGradientBrush class.

public ImmutableLinearGradientBrush(LinearGradientBrush source)

Parameters

source LinearGradientBrush

The brush from which this brush's properties should be copied.

ImmutableLinearGradientBrush(IReadOnlyList<ImmutableGradientStop>, double, ImmutableTransform?, RelativePoint?, GradientSpreadMethod, RelativePoint?, RelativePoint?)

Initializes a new instance of the ImmutableLinearGradientBrush class.

public ImmutableLinearGradientBrush(IReadOnlyList<ImmutableGradientStop> gradientStops, double opacity = 1, ImmutableTransform? transform = null, RelativePoint? transformOrigin = null, GradientSpreadMethod spreadMethod = GradientSpreadMethod.Pad, RelativePoint? startPoint = null, RelativePoint? endPoint = null)

Parameters

gradientStops IReadOnlyList<ImmutableGradientStop>

The gradient stops.

opacity double

The opacity of the brush.

transform ImmutableTransform

The transform of the brush.

transformOrigin RelativePoint?

The transform origin of the brush

spreadMethod GradientSpreadMethod

The spread method.

startPoint RelativePoint?

The start point for the gradient.

endPoint RelativePoint?

The end point for the gradient.

Properties

EndPoint

Gets or sets the end point for the gradient.

public RelativePoint EndPoint { get; }

Property Value

RelativePoint

StartPoint

Gets or sets the start point for the gradient.

public RelativePoint StartPoint { get; }

Property Value

RelativePoint