IImageDraw Method

Draws the image to a DrawingContext.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
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.

See Also