Click or drag to resize

BitmapExtensionsToSkImage Method

Converts a Bitmap to the SkiaSharp SKImage.

Namespace:  DotNetBrowser.AvaloniaUi
Assembly:  DotNetBrowser.AvaloniaUi (in DotNetBrowser.AvaloniaUi.dll) Version: 2.25.1
Syntax
C#
public static SKImage ToSkImage(
	this Bitmap bitmap
)

Parameters

bitmap
Type: DotNetBrowser.UiBitmap
The bitmap to convert.

Return Value

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