Class Convert
Inheritance
System.Object
Convert
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()
Assembly: Experior.Core.dll
Syntax
public static class Convert
Methods
Declaration
[Obsolete("Please use Experior.Core.Media namespace instead", false)]
public static Color AsMediaColor(this Color color)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
color |
|
Returns
Type |
Description |
System.Windows.Media.Color |
|
AsSystemDrawingColor(Color)
Declaration
[Obsolete("Please use Experior.Core.Media namespace instead", false)]
public static Color AsSystemDrawingColor(this Color color)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
color |
|
Returns
Type |
Description |
System.Drawing.Color |
|
Declaration
[Obsolete("Please use Experior.Core.Media namespace instead", false)]
public static Color AsSystemDrawingColor(this Color color)
Parameters
Type |
Name |
Description |
System.Windows.Media.Color |
color |
|
Returns
Type |
Description |
System.Drawing.Color |
|
DeserializeColor(String)
Declaration
public static Color DeserializeColor(string color)
Parameters
Type |
Name |
Description |
System.String |
color |
|
Returns
Type |
Description |
System.Drawing.Color |
|
Declaration
public static int ToArgb(this Color color)
Parameters
Type |
Name |
Description |
System.Windows.Media.Color |
color |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public static BitmapSource ToBitmapSource(this ImageSource imageSource)
Parameters
Type |
Name |
Description |
System.Windows.Media.ImageSource |
imageSource |
|
Returns
Type |
Description |
System.Windows.Media.Imaging.BitmapSource |
|
ToBrush(Int32)
Declaration
public static Brush ToBrush(this int colorArgb)
Parameters
Type |
Name |
Description |
System.Int32 |
colorArgb |
|
Returns
Type |
Description |
System.Windows.Media.Brush |
|
Declaration
public static byte[] ToByteArrayPngEncoded(this BitmapSource imageIn)
Parameters
Type |
Name |
Description |
System.Windows.Media.Imaging.BitmapSource |
imageIn |
|
Returns
Type |
Description |
System.Byte[] |
|
ToImageSource(Byte[])
Declaration
public static ImageSource ToImageSource(this byte[] svg)
Parameters
Type |
Name |
Description |
System.Byte[] |
svg |
|
Returns
Type |
Description |
System.Windows.Media.ImageSource |
|
Declaration
public static Color ToMediaColor(this int colorArgb)
Parameters
Type |
Name |
Description |
System.Int32 |
colorArgb |
|
Returns
Type |
Description |
System.Windows.Media.Color |
|
Declaration
public static Color ToMediaColor(this string hexColor)
Parameters
Type |
Name |
Description |
System.String |
hexColor |
|
Returns
Type |
Description |
System.Windows.Media.Color |
|