Table of Contents

Class ImageBrush

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Paints an area with an IBitmap.

public sealed class ImageBrush : TileBrush, INotifyPropertyChanged, IImageBrush, ITileBrush, IBrush
Inheritance
ImageBrush
Implements
Inherited Members
Extension Methods

Constructors

ImageBrush()

Initializes a new instance of the ImageBrush class.

public ImageBrush()

ImageBrush(IImageBrushSource?)

Initializes a new instance of the ImageBrush class.

public ImageBrush(IImageBrushSource? source)

Parameters

source IImageBrushSource

The image to draw.

Fields

SourceProperty

Defines the Visual property.

public static readonly StyledProperty<IImageBrushSource?> SourceProperty

Field Value

StyledProperty<IImageBrushSource>

Properties

Source

Gets or sets the image to draw.

public IImageBrushSource? Source { get; set; }

Property Value

IImageBrushSource

Methods

ToImmutable()

Creates an immutable clone of the brush.

public IImmutableBrush ToImmutable()

Returns

IImmutableBrush

The immutable clone.