Skip to main content

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

Initializes a new instance of the ImmutableRadialGradientBrush class.

Definition​

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

public ImmutableRadialGradientBrush(
IReadOnlyList<ImmutableGradientStop> gradientStops,
double opacity = 1,
ImmutableTransform? transform = null,
RelativePoint? transformOrigin = null,
GradientSpreadMethod spreadMethod = GradientSpreadMethod.Pad,
RelativePoint? center = null,
RelativePoint? gradientOrigin = null,
double radius = 0.5
)

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 location of the two-dimensional focal point that defines the beginning of the gradient.
  Double  (Optional)
The horizontal and vertical radius of the outermost circle of the radial gradient.

See Also​

Reference​

ImmutableRadialGradientBrush Class
ImmutableRadialGradientBrush Overload
Avalonia.Media.Immutable Namespace