DrawingContext.

DrawImage(IImage, Rect, Rect, BitmapInterpolationMode) Method

Summary

Draws an image.
Namespace
Avalonia.Media
Containing Type
DrawingContext

Syntax

public void DrawImage(IImage source, Rect sourceRect, Rect destRect, BitmapInterpolationMode bitmapInterpolationMode = default(BitmapInterpolationMode))

Parameters

Name Type Description
source IImage The image.
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