IPlatformRenderInterface.

LoadBitmapToWidth(Stream, int, BitmapInterpolationMode) Method

Summary

Loads a bitmap implementation from a stream to a specified width maintaining aspect ratio.
Namespace
Avalonia.Platform
Containing Type
IPlatformRenderInterface

Syntax

IBitmapImpl LoadBitmapToWidth(Stream stream, int width, BitmapInterpolationMode interpolationMode = HighQuality)

Parameters

Name Type Description
stream Stream The stream to read the bitmap from.
width int The desired width of the resulting bitmap.
interpolationMode BitmapInterpolationMode The BitmapInterpolationMode to use should resizing be required.

Return Value

Type Description
IBitmapImpl An IBitmapImpl.