Skip to main content

Draw Method

Draws the image to a DrawingContext.

Definition​

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

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

Parameters​

  DrawingContext
The drawing context.
  Rect
The rect in the image to draw.
  Rect
The rect in the output to draw to.

See Also​

Reference​

IImage Interface
Avalonia.Media Namespace