Skip to main content

CreateScaledBitmap Method

Creates a Bitmap scaled to a specified size from the current bitmap.

Definition

Namespace: Avalonia.Media.Imaging
Assembly: Avalonia.Base (in Avalonia.Base.dll)

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

Parameters

  PixelSize
The destination size.
  BitmapInterpolationMode  (Optional)
The BitmapInterpolationMode to use should any scaling be required.

Return Value

Bitmap
An instance of the Bitmap class.

See Also

Reference

Bitmap Class
Avalonia.Media.Imaging Namespace