Class ImmutableConicGradientBrush
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
ConicGradientBrushThe 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
doubleThe opacity of the brush.
transform
ImmutableTransformThe transform of the brush.
transformOrigin
RelativePoint?The transform origin of the brush
spreadMethod
GradientSpreadMethodThe spread method.
center
RelativePoint?The center point for the gradient.
angle
doubleThe 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
Center
Gets the center point for the gradient.
public RelativePoint Center { get; }