Skip to main content

WriteableBitmap(PixelFormat, AlphaFormat, IntPtr, PixelSize, Vector, Int32) Constructor

Initializes a new instance of the WriteableBitmap class with existing pixel data The data is copied to the bitmap

Definition

Namespace: Avalonia.Media.Imaging
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public WriteableBitmap(
PixelFormat format,
AlphaFormat alphaFormat,
IntPtr data,
PixelSize size,
Vector dpi,
int stride
)

Parameters

  PixelFormat
The pixel format.
  AlphaFormat
The alpha format.
  IntPtr
The pointer to the source bytes.
  PixelSize
The size of the bitmap in device pixels.
  Vector
The DPI of the bitmap.
  Int32
The number of bytes per row.

See Also

Reference

WriteableBitmap Class
WriteableBitmap Overload
Avalonia.Media.Imaging Namespace