Bitmap.

CreateScaledBitmap(PixelSize, BitmapInterpolationMode) Method

Summary

Creates a Bitmap scaled to a specified size from the current bitmap.
Namespace
Avalonia.Media.Imaging
Containing Type
Bitmap

Syntax

public Bitmap CreateScaledBitmap(PixelSize destinationSize, BitmapInterpolationMode interpolationMode = HighQuality)

Parameters

Name Type Description
destinationSize PixelSize The destination size.
interpolationMode BitmapInterpolationMode The BitmapInterpolationMode to use should any scaling be required.

Return Value

Type Description
Bitmap An instance of the Bitmap class.