Table of Contents

Class ImmutableConicGradientBrush

Namespace
Avalonia.Media.Immutable
Assembly
Avalonia.Base.dll

A brush that draws with a sweep gradient.

public class ImmutableConicGradientBrush : ImmutableGradientBrush, IImmutableBrush, IConicGradientBrush, IGradientBrush, IBrush
Inheritance
ImmutableConicGradientBrush
Implements
Inherited Members
Extension Methods

Constructors

ImmutableConicGradientBrush(ConicGradientBrush)

Initializes a new instance of the ImmutableConicGradientBrush class.

public ImmutableConicGradientBrush(ConicGradientBrush source)

Parameters

source ConicGradientBrush

The brush from which this brush's properties should be copied.

ImmutableConicGradientBrush(IReadOnlyList<ImmutableGradientStop>, double, ImmutableTransform?, RelativePoint?, GradientSpreadMethod, RelativePoint?, double)

Initializes a new instance of the ImmutableConicGradientBrush class.

public ImmutableConicGradientBrush(IReadOnlyList<ImmutableGradientStop> gradientStops, double opacity = 1, ImmutableTransform? transform = null, RelativePoint? transformOrigin = null, GradientSpreadMethod spreadMethod = GradientSpreadMethod.Pad, RelativePoint? center = null, double angle = 0)

Parameters

gradientStops IReadOnlyList<ImmutableGradientStop>

The gradient stops.

opacity double

The opacity of the brush.

transform ImmutableTransform

The transform of the brush.

transformOrigin RelativePoint?

The transform origin of the brush

spreadMethod GradientSpreadMethod

The spread method.

center RelativePoint?

The center point for the gradient.

angle double

The starting angle for the gradient.

Properties

Angle

Gets the starting angle for the gradient in degrees, measured from the point above the center point.

public double Angle { get; }

Property Value

double

Center

Gets the center point for the gradient.

public RelativePoint Center { get; }

Property Value

RelativePoint