Summary
Loads a bitmap implementation from a stream to a specified height maintaining aspect ratio.
- Namespace
- Avalonia
.Platform - Containing Type
- I
Platform Render Interface
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 | Bitmap |
The BitmapInterpolationMode to use should resizing be required. |
Return Value
Type | Description |
---|---|
IBitmapImpl | An IBitmapImpl . |