IPlatformRenderInterface.

LoadBitmap(PixelFormat, AlphaFormat, IntPtr, PixelSize, Vector, int) Method

Summary

Loads a bitmap implementation from a pixels in memory.
Namespace
Avalonia.Platform
Containing Type
IPlatformRenderInterface

Syntax

IBitmapImpl LoadBitmap(PixelFormat format, AlphaFormat alphaFormat, IntPtr data, PixelSize size, Vector dpi, int stride)

Parameters

Name Type Description
format PixelFormat The pixel format.
alphaFormat AlphaFormat The alpha format.
data IntPtr The pointer to source bytes.
size PixelSize The size of the bitmap in device pixels.
dpi Vector The DPI of the bitmap.
stride int The number of bytes per row.

Return Value

Type Description
IBitmapImpl An IBitmapImpl.