Skip to main content

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

Initializes a new instance of the ImmutableGradientBrush class.

Definition​

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

protected ImmutableGradientBrush(
IReadOnlyList<ImmutableGradientStop> gradientStops,
double opacity,
ImmutableTransform? transform,
RelativePoint? transformOrigin,
GradientSpreadMethod spreadMethod
)

Parameters​

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

See Also​

Reference​

ImmutableGradientBrush Class
ImmutableGradientBrush Overload
Avalonia.Media.Immutable Namespace