Class WPFImageHelper
Image helper for WPF.
Inherited Members
Namespace: VisioForge.Core.UI.WPF
Assembly: VisioForge.Core.dll
Syntax
public static class WPFImageHelper
Methods
ToBitmap(BitmapSource)
Converts Bitmap to WPF BitmapSource.
Declaration
public static Bitmap ToBitmap(this BitmapSource bitmapSource)
Parameters
| Type | Name | Description |
|---|---|---|
| BitmapSource | bitmapSource | The bitmap source. |
Returns
| Type | Description |
|---|---|
| Bitmap | Bitmap. |
ToBitmapSource(Bitmap)
Converts WinForms Bitmap to WPF BitmapSource.
Declaration
public static BitmapSource ToBitmapSource(this Bitmap bitmap)
Parameters
| Type | Name | Description |
|---|---|---|
| Bitmap | bitmap | Source frameBitmap. |
Returns
| Type | Description |
|---|---|
| BitmapSource | Returns WPF BitmapSource. |