Click or drag to resize

BitmapExtensionsToUiBitmap Method

Converts a Bitmap to the Avalonia UI IBitmap.

Namespace:  DotNetBrowser.AvaloniaUi
Assembly:  DotNetBrowser.AvaloniaUi (in DotNetBrowser.AvaloniaUi.dll) Version: 2.27.7
Syntax
C#
public static Bitmap ToUiBitmap(
	this Bitmap bitmap
)

Parameters

bitmap
Type: DotNetBrowser.UiBitmap
The bitmap to convert.

Return Value

Type: Bitmap
The converted IBitmap instance.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Bitmap. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also