Click or drag to resize

BitmapExtensionsToBitmapSource Method

Converts the Bitmap instance to BitmapSource that can be then used in building the UI, e.g. displaying icons.

Namespace:  DotNetBrowser.Wpf
Assembly:  DotNetBrowser.Wpf (in DotNetBrowser.Wpf.dll) Version: 2.24.2
Syntax
C#
public static BitmapSource ToBitmapSource(
	this Bitmap bitmap
)

Parameters

bitmap
Type: DotNetBrowser.UiBitmap
the bitmap to convert

Return Value

Type: BitmapSource
the converted bitmap.

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