Class System_Drawing_ImageExtensions
Contains extensions for the Img class.
Inherited Members
Namespace: TheXDS.MCART.Helpers
Assembly: MCART.Wpf.Common.dll
Syntax
public static class System_Drawing_ImageExtensions
Methods
| Edit this page View SourceToImage(Image)
Converts a System.Drawing.Image into a BitmapImage.
Declaration
public static BitmapImage ToImage(this Image image)
Parameters
| Type | Name | Description |
|---|---|---|
| Image | image | The System.Drawing.Image to convert. |
Returns
| Type | Description |
|---|---|
| BitmapImage | A BitmapImage containing the image obtained from the System.Drawing.Image. |
ToSource(Image)
Converts a System.Drawing.Image into a BitmapSource.
Declaration
public static BitmapSource ToSource(this Image image)
Parameters
| Type | Name | Description |
|---|---|---|
| Image | image | The System.Drawing.Image to convert. |
Returns
| Type | Description |
|---|---|
| BitmapSource | A BitmapSource containing the image obtained from the System.Drawing.Image. |
ToVisual(Image)
Converts a System.Drawing.Image into a Visual.
Declaration
public static Visual ToVisual(this Image image)
Parameters
| Type | Name | Description |
|---|---|---|
| Image | image | The System.Drawing.Image to convert. |
Returns
| Type | Description |
|---|---|
| Visual | A Visual that contains the image obtained from the System.Drawing.Image. |