Class ImmutableGradientBrush
A brush that draws with a gradient.
public abstract class ImmutableGradientBrush : IGradientBrush, IImmutableBrush, IBrush
- Inheritance
-
ImmutableGradientBrush
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ImmutableGradientBrush(GradientBrush)
Initializes a new instance of the ImmutableGradientBrush class.
protected ImmutableGradientBrush(GradientBrush source)
Parameters
source
GradientBrushThe brush from which this brush's properties should be copied.
ImmutableGradientBrush(IReadOnlyList<ImmutableGradientStop>, double, ImmutableTransform?, RelativePoint?, GradientSpreadMethod)
Initializes a new instance of the ImmutableGradientBrush class.
protected ImmutableGradientBrush(IReadOnlyList<ImmutableGradientStop> gradientStops, double opacity, ImmutableTransform? transform, RelativePoint? transformOrigin, GradientSpreadMethod spreadMethod)
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.
Properties
GradientStops
Gets the brush's gradient stops.
public IReadOnlyList<IGradientStop> GradientStops { get; }
Property Value
Opacity
Gets the opacity of the brush.
public double Opacity { get; }
Property Value
SpreadMethod
Gets the brush's spread method that defines how to draw a gradient that doesn't fill the bounds of the destination control.
public GradientSpreadMethod SpreadMethod { get; }
Property Value
Transform
Gets the transform of the brush.
public ITransform? Transform { get; }
Property Value
TransformOrigin
Gets the transform origin of the brush
public RelativePoint TransformOrigin { get; }