Skip to main content

IGradientBrush Interface

Not client implementable.

Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.

A brush that draws with a gradient.

Definition​

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

[NotClientImplementableAttribute]
public interface IGradientBrush : IBrush
View Source
ImplementsIBrush

Properties​

GradientStopsGets the brush's gradient stops.
OpacityGets the opacity of the brush.
(Inherited from IBrush)
SpreadMethodGets the brush's spread method that defines how to draw a gradient that doesn't fill the bounds of the destination control.
TransformGets the transform of the brush.
(Inherited from IBrush)
TransformOriginGets the origin of the brushes Transform
(Inherited from IBrush)

Extension Methods​

ToImmutable()Converts a brush to an immutable brush.
(Defined by BrushExtensions)

See Also​

Reference​

Avalonia.Media Namespace