IDrawingContextImpl.

DrawBitmap(IRef<IBitmapImpl>, double, Rect, Rect, BitmapInterpolationMode) Method

Summary

Draws a bitmap image.
Namespace
Avalonia.Platform
Containing Type
IDrawingContextImpl

Syntax

void DrawBitmap(IRef<IBitmapImpl> source, double opacity, Rect sourceRect, Rect destRect, BitmapInterpolationMode bitmapInterpolationMode = Default)

Parameters

Name Type Description
source IRef<IBitmapImpl> The bitmap image.
opacity double The opacity to draw with.
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