Bitmap.

Bitmap(PixelFormat, AlphaFormat, IntPtr, PixelSize, Vector, int) Constructor

Summary

Initializes a new instance of the Bitmap class.
Namespace
Avalonia.Media.Imaging
Containing Type
Bitmap

Syntax

public Bitmap(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 the 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
void