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)
- C#
- VB
- F#
protected ImmutableGradientBrush(
IReadOnlyList<ImmutableGradientStop> gradientStops,
double opacity,
ImmutableTransform? transform,
RelativePoint? transformOrigin,
GradientSpreadMethod spreadMethod
)
Protected Sub New (
gradientStops As IReadOnlyList(Of ImmutableGradientStop),
opacity As Double,
transform As ImmutableTransform,
transformOrigin As RelativePoint?,
spreadMethod As GradientSpreadMethod
)
new :
gradientStops : IReadOnlyList<ImmutableGradientStop> *
opacity : float *
transform : ImmutableTransform *
transformOrigin : Nullable<RelativePoint> *
spreadMethod : GradientSpreadMethod -> ImmutableGradientBrush
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