Class ImageExtensions
Inheritance
System.Object
ImageExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Experior.Core
Assembly: Experior.Core.dll
Syntax
public static class ImageExtensions
Methods
ToBitmap(Image)
Declaration
public static BitmapImage ToBitmap(this Image src)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | src |
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapImage |
ToBitmapSource(Image)
Declaration
public static BitmapSource ToBitmapSource(this Image image)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | image |
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapSource |
ToBitmapSource(Image, Int32, Int32)
Declaration
public static BitmapSource ToBitmapSource(this Image image, int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | image | |
System.Int32 | width | |
System.Int32 | height |
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapSource |
ToBitmapSource(Image, Int32, Int32, ImageFormat)
Declaration
public static BitmapSource ToBitmapSource(this Image image, int width, int height, ImageFormat imageFormat)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | image | |
System.Int32 | width | |
System.Int32 | height | |
System.Drawing.Imaging.ImageFormat | imageFormat |
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapSource |