IBrush Interface

Summary

Describes how an area is painted.
graph TD Type["IBrush"] class Type type-node Type-.->Implementing0["ImmutableRadialGradientBrush"] click Implementing0 "/api/Avalonia.Media.Immutable/ImmutableRadialGradientBrush" Type-.->Implementing1["IVisualBrush"] click Implementing1 "/api/Avalonia.Media/IVisualBrush" Type-.->Implementing2["VisualBrush"] click Implementing2 "/api/Avalonia.Media/VisualBrush" Type-.->Implementing3["IMutableBrush"] click Implementing3 "/api/Avalonia.Media/IMutableBrush" Type-.->Implementing4["Brush"] click Implementing4 "/api/Avalonia.Media/Brush" Type-.->Implementing5["ILinearGradientBrush"] click Implementing5 "/api/Avalonia.Media/ILinearGradientBrush" Type-.->Implementing6["GradientBrush"] click Implementing6 "/api/Avalonia.Media/GradientBrush" Type-.->Implementing7["IImageBrush"] click Implementing7 "/api/Avalonia.Media/IImageBrush" Type-.->Implementing8["ImageBrush"] click Implementing8 "/api/Avalonia.Media/ImageBrush" Type-.->Implementing9["ImmutableLinearGradientBrush"] click Implementing9 "/api/Avalonia.Media.Immutable/ImmutableLinearGradientBrush" Type-.->Implementing10["IRadialGradientBrush"] click Implementing10 "/api/Avalonia.Media/IRadialGradientBrush" Type-.->Implementing11["RadialGradientBrush"] click Implementing11 "/api/Avalonia.Media/RadialGradientBrush" Type-.->Implementing12["TileBrush"] click Implementing12 "/api/Avalonia.Media/TileBrush" Type-.->Implementing13["ImmutableTileBrush"] click Implementing13 "/api/Avalonia.Media.Immutable/ImmutableTileBrush" Type-.->Implementing14["IGradientBrush"] click Implementing14 "/api/Avalonia.Media/IGradientBrush" Type-.->Implementing15["SolidColorBrush"] click Implementing15 "/api/Avalonia.Media/SolidColorBrush" Type-.->Implementing16["LinearGradientBrush"] click Implementing16 "/api/Avalonia.Media/LinearGradientBrush" Type-.->Implementing17["ImmutableGradientBrush"] click Implementing17 "/api/Avalonia.Media.Immutable/ImmutableGradientBrush" Type-.->Implementing18["ITileBrush"] click Implementing18 "/api/Avalonia.Media/ITileBrush" Type-.->Implementing19["ImmutableSolidColorBrush"] click Implementing19 "/api/Avalonia.Media.Immutable/ImmutableSolidColorBrush" Type-.->Implementing20["ISolidColorBrush"] click Implementing20 "/api/Avalonia.Media/ISolidColorBrush"

Syntax

[TypeConverter(typeof(BrushConverter))]
public interface IBrush

Attributes

Type Description
TypeConverter

Properties

Name Value Summary
Opacity double
Gets the opacity of the brush.

Extension Methods

Name Value Summary
ToImmutable() IBrush
Converts a brush to an immutable brush.