ImmutableGradientBrush Class
A brush that draws with a gradient.
Definition
Namespace: Avalonia.Media.Immutable
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public abstract class ImmutableGradientBrush : IGradientBrush,
IBrush, IImmutableBrush
Public MustInherit Class ImmutableGradientBrush
Implements IGradientBrush, IBrush, IImmutableBrush
[<AbstractClassAttribute>]
type ImmutableGradientBrush =
class
interface IGradientBrush
interface IBrush
interface IImmutableBrush
end
Inheritance | Object → ImmutableGradientBrush |
Derived | Avalonia.Media.Immutable.ImmutableConicGradientBrush Avalonia.Media.Immutable.ImmutableLinearGradientBrush Avalonia.Media.Immutable.ImmutableRadialGradientBrush |
Implements | IBrush, IGradientBrush, IImmutableBrush |
Constructors
ImmutableGradientBrush(GradientBrush) | Initializes a new instance of the ImmutableGradientBrush class. |
ImmutableGradientBrush(IReadOnlyList(ImmutableGradientStop), Double, ImmutableTransform, Nullable(RelativePoint), GradientSpreadMethod) | Initializes a new instance of the ImmutableGradientBrush class. |
Properties
GradientStops | Gets the brush's gradient stops. |
Opacity | Gets the opacity of the brush. |
SpreadMethod | Gets the brush's spread method that defines how to draw a gradient that doesn't fill the bounds of the destination control. |
Transform | Gets the transform of the brush. |
TransformOrigin | Gets the transform origin of the brush |
Methods
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode() | Serves as the default hash function. (Inherited from Object) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() | Returns a string that represents the current object. (Inherited from Object) |
Extension Methods
ToImmutable() | Converts a brush to an immutable brush. (Defined by BrushExtensions) |