Table of Contents

Class Drawing

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Abstract class that describes a 2-D drawing.

public abstract class Drawing : AvaloniaObject, INotifyPropertyChanged
Inheritance
Drawing
Implements
Derived
Inherited Members
Extension Methods

Methods

Draw(DrawingContext)

Draws this drawing to the given DrawingContext.

public void Draw(DrawingContext context)

Parameters

context DrawingContext

The drawing context.

GetBounds()

Gets the drawing's bounding rectangle.

public abstract Rect GetBounds()

Returns

Rect