Skip to main content

ImmutableLinearGradientBrush(IReadOnlyList<ImmutableGradientStop>, Double, ImmutableTransform, Nullable<RelativePoint>, GradientSpreadMethod, Nullable<RelativePoint>, Nullable<RelativePoint>) Constructor

Initializes a new instance of the ImmutableLinearGradientBrush class.

Definition​

Namespace: Avalonia.Media.Immutable
Assembly: Avalonia.Base (in Avalonia.Base.dll)

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​

  IReadOnlyList(ImmutableGradientStop)
The gradient stops.
  Double  (Optional)
The opacity of the brush.
  ImmutableTransform  (Optional)
The transform of the brush.
  Nullable(RelativePoint)  (Optional)
The transform origin of the brush
  GradientSpreadMethod  (Optional)
The spread method.
  Nullable(RelativePoint)  (Optional)
The start point for the gradient.
  Nullable(RelativePoint)  (Optional)
The end point for the gradient.

See Also​

Reference​

ImmutableLinearGradientBrush Class
ImmutableLinearGradientBrush Overload
Avalonia.Media.Immutable Namespace