Table of Contents

Class ImmutableTileBrush

Namespace
Avalonia.Media.Immutable
Assembly
Avalonia.Base.dll

A brush which displays a repeating image.

public abstract class ImmutableTileBrush : ITileBrush, IImmutableBrush, IBrush
Inheritance
ImmutableTileBrush
Implements
Inherited Members
Extension Methods

Constructors

ImmutableTileBrush(ITileBrush)

Initializes a new instance of the ImageBrush class.

protected ImmutableTileBrush(ITileBrush source)

Parameters

source ITileBrush

The brush from which this brush's properties should be copied.

Properties

AlignmentX

Gets the horizontal alignment of a tile in the destination.

public AlignmentX AlignmentX { get; }

Property Value

AlignmentX

AlignmentY

Gets the horizontal alignment of a tile in the destination.

public AlignmentY AlignmentY { get; }

Property Value

AlignmentY

DestinationRect

Gets the rectangle on the destination in which to paint a tile.

public RelativeRect DestinationRect { get; }

Property Value

RelativeRect

Opacity

Gets the opacity of the brush.

public double Opacity { get; }

Property Value

double

SourceRect

Gets the rectangle of the source image that will be displayed.

public RelativeRect SourceRect { get; }

Property Value

RelativeRect

Stretch

Gets a value indicating how the source rectangle will be stretched to fill the destination rect.

public Stretch Stretch { get; }

Property Value

Stretch

TileMode

Gets the brush's tile mode.

public TileMode TileMode { get; }

Property Value

TileMode

Transform

Gets the transform of the brush.

public ITransform? Transform { get; }

Property Value

ITransform

TransformOrigin

Gets the transform origin of the brush

public RelativePoint TransformOrigin { get; }

Property Value

RelativePoint