Table of Contents

Class ImageDrawing

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Draws an image within a region defined by a Rect.

public sealed class ImageDrawing : Drawing, INotifyPropertyChanged
Inheritance
ImageDrawing
Implements
Inherited Members
Extension Methods

Constructors

ImageDrawing()

public ImageDrawing()

Fields

ImageSourceProperty

Defines the ImageSource property.

public static readonly StyledProperty<IImage?> ImageSourceProperty

Field Value

StyledProperty<IImage>

RectProperty

Defines the Rect property.

public static readonly StyledProperty<Rect> RectProperty

Field Value

StyledProperty<Rect>

Properties

ImageSource

Gets or sets the source of the image.

public IImage? ImageSource { get; set; }

Property Value

IImage

Rect

Gets or sets region in which the image is drawn.

public Rect Rect { get; set; }

Property Value

Rect

Methods

GetBounds()

Gets the drawing's bounding rectangle.

public override Rect GetBounds()

Returns

Rect