Skip to main content

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

Initializes a new instance of the Bitmap class.

Definition

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

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

Bitmap Class
Bitmap Overload
Avalonia.Media.Imaging Namespace