IPlatformRenderInterface.

LoadBitmapToHeight(Stream, int, BitmapInterpolationMode) Method

Summary

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

Syntax

IBitmapImpl LoadBitmapToHeight(Stream stream, int height, BitmapInterpolationMode interpolationMode = HighQuality)

Parameters

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

Return Value

Type Description
IBitmapImpl An IBitmapImpl.