Table of Contents

Interface IImage

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Represents a raster or vector image.

public interface IImage

Properties

Size

Gets the size of the image, in device independent pixels.

Size Size { get; }

Property Value

Size

Methods

Draw(DrawingContext, Rect, Rect)

Draws the image to a DrawingContext.

void Draw(DrawingContext context, Rect sourceRect, Rect destRect)

Parameters

context DrawingContext

The drawing context.

sourceRect Rect

The rect in the image to draw.

destRect Rect

The rect in the output to draw to.