Click or drag to resize

BitmapExtensionsToSkBitmap Method

Converts a Bitmap to the SkiaSharp SKBitmap.

Namespace:  DotNetBrowser.AvaloniaUi
Assembly:  DotNetBrowser.AvaloniaUi (in DotNetBrowser.AvaloniaUi.dll) Version: 2.27.0
Syntax
C#
public static SKBitmap ToSkBitmap(
	this Bitmap bitmap
)

Parameters

bitmap
Type: DotNetBrowser.UiBitmap
The bitmap to convert.

Return Value

Type: SKBitmap
The converted SKBitmap 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