WriteableBitmap(PixelSize, Vector, Nullable<PixelFormat>, Nullable<AlphaFormat>) Constructor
Initializes a new instance of the WriteableBitmap class.
Definition
Namespace: Avalonia.Media.Imaging
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public WriteableBitmap(
PixelSize size,
Vector dpi,
PixelFormat? format = null,
AlphaFormat? alphaFormat = null
)
Public Sub New (
size As PixelSize,
dpi As Vector,
Optional format As PixelFormat? = Nothing,
Optional alphaFormat As AlphaFormat? = Nothing
)
new :
size : PixelSize *
dpi : Vector *
?format : Nullable<PixelFormat> *
?alphaFormat : Nullable<AlphaFormat>
(* Defaults:
let _format = defaultArg format null
let _alphaFormat = defaultArg alphaFormat null
*)
-> WriteableBitmap
Parameters
- PixelSize
- The size of the bitmap in device pixels.
- Vector
- The DPI of the bitmap.
- Nullable(PixelFormat) (Optional)
- The pixel format (optional).
- Nullable(AlphaFormat) (Optional)
- The alpha format (optional).
Return Value
An instance of the WriteableBitmap class.
See Also
Reference
WriteableBitmap Class
WriteableBitmap Overload
Avalonia.Media.Imaging Namespace