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)
- C#
- VB
- F#
public Bitmap(
PixelFormat format,
AlphaFormat alphaFormat,
IntPtr data,
PixelSize size,
Vector dpi,
int stride
)
Public Sub New (
format As PixelFormat,
alphaFormat As AlphaFormat,
data As IntPtr,
size As PixelSize,
dpi As Vector,
stride As Integer
)
new :
format : PixelFormat *
alphaFormat : AlphaFormat *
data : IntPtr *
size : PixelSize *
dpi : Vector *
stride : int -> Bitmap
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