ImmutableConicGradientBrush(IReadOnlyList<ImmutableGradientStop>, Double, ImmutableTransform, Nullable<RelativePoint>, GradientSpreadMethod, Nullable<RelativePoint>, Double) Constructor
Initializes a new instance of the ImmutableConicGradientBrush class.
Definition
Namespace: Avalonia.Media.Immutable
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public ImmutableConicGradientBrush(
IReadOnlyList<ImmutableGradientStop> gradientStops,
double opacity = 1,
ImmutableTransform? transform = null,
RelativePoint? transformOrigin = null,
GradientSpreadMethod spreadMethod = GradientSpreadMethod.Pad,
RelativePoint? center = null,
double angle = 0
)
Public Sub New (
gradientStops As IReadOnlyList(Of ImmutableGradientStop),
Optional opacity As Double = 1,
Optional transform As ImmutableTransform = Nothing,
Optional transformOrigin As RelativePoint? = Nothing,
Optional spreadMethod As GradientSpreadMethod = GradientSpreadMethod.Pad,
Optional center As RelativePoint? = Nothing,
Optional angle As Double = 0
)
new :
gradientStops : IReadOnlyList<ImmutableGradientStop> *
?opacity : float *
?transform : ImmutableTransform *
?transformOrigin : Nullable<RelativePoint> *
?spreadMethod : GradientSpreadMethod *
?center : Nullable<RelativePoint> *
?angle : float
(* Defaults:
let _opacity = defaultArg opacity 1
let _transform = defaultArg transform null
let _transformOrigin = defaultArg transformOrigin null
let _spreadMethod = defaultArg spreadMethod GradientSpreadMethod.Pad
let _center = defaultArg center null
let _angle = defaultArg angle 0
*)
-> ImmutableConicGradientBrush
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 center point for the gradient.
- Double (Optional)
- The starting angle for the gradient.
See Also
Reference
ImmutableConicGradientBrush Class
ImmutableConicGradientBrush Overload
Avalonia.Media.Immutable Namespace