ImmutableConicGradientBrush Class
Definition
A brush that draws with a sweep gradient.
public class ImmutableConicGradientBrush
Constructors
| Name | Description |
|---|---|
| ImmutableConicGradientBrush (3 overloads) | Initializes a new instance of the Avalonia.Media.Immutable.ImmutableConicGradientBrush class. |
ImmutableConicGradientBrush overloads
ImmutableConicGradientBrush Constructor
Initializes a new instance of the Avalonia.Media.Immutable.ImmutableConicGradientBrush class.
public ImmutableConicGradientBrush(Avalonia.Media.ConicGradientBrush source)
Parameters
source Avalonia.Media.ConicGradientBrush
The brush from which this brush's properties should be copied.
ImmutableConicGradientBrush Constructor
public ImmutableConicGradientBrush(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, double angle)
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>
angle double
ImmutableConicGradientBrush Constructor
public ImmutableConicGradientBrush(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, double angle, Avalonia.Media.Immutable.ImmutableTransform relativeTransform)
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>
angle double
relativeTransform Avalonia.Media.Immutable.ImmutableTransform
Properties
| Name | Description |
|---|---|
| Angle | Gets the starting angle for the gradient in degrees, measured from the point above the center point. |
| Center | Gets the center point for the gradient. |
| GradientStops | Gets the brush's gradient stops. Inherited from ImmutableGradientBrush. |
| Opacity | Gets the opacity of the brush. Inherited from ImmutableGradientBrush. |
| RelativeTransform | Gets the transform applied in the relative coordinate space of the area being painted: the unit square (0,0)-(1,1) maps onto the painted bounds, this transform applies inside that space, and Avalonia.Media.IBrush.Transform follows in target space. It lets a single brush express a bounds-dependent transform - an SVG gradientTransform in objectBoundingBox units, for example - without baking any one consumer's bounds into a matrix. 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. |
Angle Property
Gets the starting angle for the gradient in degrees, measured from the point above the center point.
public double Angle { get; set; }
Center Property
Gets the center point for the gradient.
public Avalonia.RelativePoint Center { get; set; }