ImmutableRadialGradientBrush Class
Definition
A brush that draws with a radial gradient.
public class ImmutableRadialGradientBrush
Constructors
| Name | Description |
|---|---|
| ImmutableRadialGradientBrush (3 overloads) | Initializes a new instance of the Avalonia.Media.Immutable.ImmutableRadialGradientBrush class. |
ImmutableRadialGradientBrush overloads
ImmutableRadialGradientBrush Constructor
Initializes a new instance of the Avalonia.Media.Immutable.ImmutableRadialGradientBrush class.
public ImmutableRadialGradientBrush(Avalonia.Media.RadialGradientBrush source)
Parameters
source Avalonia.Media.RadialGradientBrush
The brush from which this brush's properties should be copied.
ImmutableRadialGradientBrush Constructor
public ImmutableRadialGradientBrush(System.Collections.Generic.IReadOnlyList<Avalonia.Media.Immutable.ImmutableGradientStop> gradientStops, double opacity, Avalonia.Media.Immutable.ImmutableTransform transform, Nullable<Avalonia.RelativePoint> transformOrigin, Avalonia.Media.GradientSpreadMethod spreadMethod, Nullable<Avalonia.RelativePoint> center, Nullable<Avalonia.RelativePoint> gradientOrigin, double radius)
Parameters
gradientStops System.Collections.Generic.IReadOnlyList<Avalonia.Media.Immutable.ImmutableGradientStop>
opacity double
transform Avalonia.Media.Immutable.ImmutableTransform
transformOrigin Nullable<Avalonia.RelativePoint>
spreadMethod Avalonia.Media.GradientSpreadMethod
center Nullable<Avalonia.RelativePoint>
gradientOrigin Nullable<Avalonia.RelativePoint>
radius double
ImmutableRadialGradientBrush Constructor
public ImmutableRadialGradientBrush(System.Collections.Generic.IReadOnlyList<Avalonia.Media.Immutable.ImmutableGradientStop> gradientStops, double opacity, Avalonia.Media.Immutable.ImmutableTransform transform, Nullable<Avalonia.RelativePoint> transformOrigin, Avalonia.Media.GradientSpreadMethod spreadMethod, Nullable<Avalonia.RelativePoint> center, Nullable<Avalonia.RelativePoint> gradientOrigin, Nullable<Avalonia.RelativeScalar> radiusX, Nullable<Avalonia.RelativeScalar> radiusY)
Parameters
gradientStops System.Collections.Generic.IReadOnlyList<Avalonia.Media.Immutable.ImmutableGradientStop>
opacity double
transform Avalonia.Media.Immutable.ImmutableTransform
transformOrigin Nullable<Avalonia.RelativePoint>
spreadMethod Avalonia.Media.GradientSpreadMethod
center Nullable<Avalonia.RelativePoint>
gradientOrigin Nullable<Avalonia.RelativePoint>
radiusX Nullable<Avalonia.RelativeScalar>
radiusY Nullable<Avalonia.RelativeScalar>
Properties
| Name | Description |
|---|---|
| Center | Gets the start point for the gradient. |
| GradientOrigin | Gets the location of the two-dimensional focal point that defines the beginning of the gradient. |
| RadiusX | Gets the horizontal radius of the outermost circle of the radial gradient. |
| RadiusY | Gets the vertical radius of the outermost circle of the radial gradient. |
| GradientStops | Gets the brush's gradient stops. Inherited from ImmutableGradientBrush. |
| Opacity | Gets the opacity of the brush. Inherited from ImmutableGradientBrush. |
| SpreadMethod | Gets the brush's spread method that defines how to draw a gradient that doesn't fill the bounds of the destination control. Inherited from ImmutableGradientBrush. |
| Transform | Gets the transform of the brush. Inherited from ImmutableGradientBrush. |
| TransformOrigin | Gets the transform origin of the brush Inherited from ImmutableGradientBrush. |
Center Property
Gets the start point for the gradient.
public Avalonia.RelativePoint Center { get; set; }
GradientOrigin Property
Gets the location of the two-dimensional focal point that defines the beginning of the gradient.
public Avalonia.RelativePoint GradientOrigin { get; set; }
RadiusX Property
Gets the horizontal radius of the outermost circle of the radial gradient.
public Avalonia.RelativeScalar RadiusX { get; set; }
RadiusY Property
Gets the vertical radius of the outermost circle of the radial gradient.
public Avalonia.RelativeScalar RadiusY { get; set; }