Summary
Initializes a new instance of the
ImmutableLinearGradientBrush
class.
- Namespace
- Avalonia
.Media .Immutable - Containing Type
- Immutable
Linear Gradient Brush
Syntax
public ImmutableLinearGradientBrush(IReadOnlyList<ImmutableGradientStop> gradientStops, double opacity = 1, GradientSpreadMethod spreadMethod = Pad, RelativePoint? startPoint = null, RelativePoint? endPoint = null)
Parameters
Name | Type | Description |
---|---|---|
gradientStops | IReadOnlyList |
The gradient stops. |
opacity | double | The opacity of the brush. |
spreadMethod | GradientSpreadMethod | The spread method. |
startPoint | RelativePoint? | The start point for the gradient. |
endPoint | RelativePoint? | The end point for the gradient. |
Return Value
Type | Description |
---|---|
void |