Class ColorConverter
A class that converts all the available color schemas (RGB, HLS, HSV, HEX and CMYK) between each other.
Inheritance
System.Object
ColorConverter
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: Telerik.Windows.Controls.dll
Syntax
public class ColorConverter
Constructors
Properties
Gets the ColorConverter instance.
Declaration
public static ColorConverter Instance { get; }
Property Value
Provides a dictionary with known colors and their hex representation.
Declaration
public static KnownColors KnownColors { get; }
Property Value
Methods
Declaration
public virtual HexColor CmykaToHex(CmykaColor color)
Parameters
Returns
Declaration
public virtual HlsaColor CmykaToHlsa(CmykaColor color)
Parameters
Returns
Declaration
public virtual HsvaColor CmykaToHsva(CmykaColor color)
Parameters
Returns
Declaration
public virtual RgbaColor CmykaToRgba(CmykaColor color)
Parameters
Returns
Creates the color from string.
Declaration
public static Color ColorFromString(string value)
Parameters
System.String
value
The value.
|
Returns
System.Windows.Media.Color
|
Declaration
public virtual CmykaColor HexToCmyka(HexColor color)
Parameters
Returns
Declaration
public virtual HlsaColor HexToHlsa(HexColor color)
Parameters
Returns
Declaration
public virtual HsvaColor HexToHsva(HexColor color)
Parameters
Returns
Declaration
public virtual RgbaColor HexToRgba(HexColor color)
Parameters
Returns
Declaration
public virtual CmykaColor HlsaToCmyka(HlsaColor color)
Parameters
Returns
Declaration
public virtual HexColor HlsaToHex(HlsaColor color)
Parameters
Returns
Declaration
public virtual HsvaColor HlsaToHsva(HlsaColor color)
Parameters
Returns
Declaration
public virtual RgbaColor HlsaToRgba(HlsaColor color)
Parameters
Returns
Declaration
public virtual CmykaColor HsvaToCmyka(HsvaColor color)
Parameters
Returns
Declaration
public virtual HexColor HsvaToHex(HsvaColor color)
Parameters
Returns
Declaration
public virtual HlsaColor HsvaToHlsa(HsvaColor color)
Parameters
Returns
Declaration
public virtual RgbaColor HsvaToRgba(HsvaColor color)
Parameters
Returns
Declaration
public virtual CmykaColor RgbaToCmyka(RgbaColor color)
Parameters
Returns
Declaration
public virtual HexColor RgbaToHex(RgbaColor color)
Parameters
Returns
Declaration
public virtual HlsaColor RgbaToHlsa(RgbaColor color)
Parameters
Returns
Declaration
public virtual HsvaColor RgbaToHsva(RgbaColor color)
Parameters
Returns
Extension Methods