Skip to main content

DrawImage(IImage, Rect, Rect) Method

Draws an image.

Definition

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

public virtual void DrawImage(
IImage source,
Rect sourceRect,
Rect destRect
)
View Source

Parameters

  IImage
The image.
  Rect
The rect in the image to draw.
  Rect
The rect in the output to draw to.

See Also

Reference

DrawingContext Class
DrawImage Overload
Avalonia.Media Namespace