Skip to main content

ImmutableRadialGradientBrush Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

A brush that draws with a radial gradient.

public class ImmutableRadialGradientBrush

Inheritance: object -> ImmutableGradientBrush -> ImmutableRadialGradientBrush

Constructors​

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​

NameDescription
CenterGets the start point for the gradient.
GradientOriginGets the location of the two-dimensional focal point that defines the beginning of the gradient.
GradientStopsGets the brush's gradient stops. Inherited from ImmutableGradientBrush.
OpacityGets the opacity of the brush. Inherited from ImmutableGradientBrush.
RadiusXGets the horizontal radius of the outermost circle of the radial gradient.
RadiusYGets the vertical radius of the outermost circle of the radial gradient.
SpreadMethodGets 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.
TransformGets the transform of the brush. Inherited from ImmutableGradientBrush.
TransformOriginGets 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; }