Class ImmutableLinearGradientBrush
A brush that draws with a linear gradient.
public class ImmutableLinearGradientBrush : ImmutableGradientBrush, IImmutableBrush, ILinearGradientBrush, IGradientBrush, IBrush
- Inheritance
-
ImmutableLinearGradientBrush
- Implements
- Inherited Members
- Extension Methods
Constructors
ImmutableLinearGradientBrush(LinearGradientBrush)
Initializes a new instance of the ImmutableLinearGradientBrush class.
public ImmutableLinearGradientBrush(LinearGradientBrush source)
Parameters
source
LinearGradientBrushThe brush from which this brush's properties should be copied.
ImmutableLinearGradientBrush(IReadOnlyList<ImmutableGradientStop>, double, ImmutableTransform?, RelativePoint?, GradientSpreadMethod, RelativePoint?, RelativePoint?)
Initializes a new instance of the ImmutableLinearGradientBrush class.
public ImmutableLinearGradientBrush(IReadOnlyList<ImmutableGradientStop> gradientStops, double opacity = 1, ImmutableTransform? transform = null, RelativePoint? transformOrigin = null, GradientSpreadMethod spreadMethod = GradientSpreadMethod.Pad, RelativePoint? startPoint = null, RelativePoint? endPoint = null)
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.
startPoint
RelativePoint?The start point for the gradient.
endPoint
RelativePoint?The end point for the gradient.
Properties
EndPoint
Gets or sets the end point for the gradient.
public RelativePoint EndPoint { get; }
Property Value
StartPoint
Gets or sets the start point for the gradient.
public RelativePoint StartPoint { get; }