IImage.

Draw(DrawingContext, Rect, Rect, BitmapInterpolationMode) Method

Summary

Draws the image to a DrawingContext.
Namespace
Avalonia.Media
Containing Type
IImage

Syntax

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

Parameters

Name Type Description
context DrawingContext The drawing context.
sourceRect Rect The rect in the image to draw.
destRect Rect The rect in the output to draw to.
bitmapInterpolationMode BitmapInterpolationMode The bitmap interpolation mode.

Return Value

Type Description
void