Class ColorExtensions
A class comprised of various color extension methods.
Inheritance
Namespace: Telerik.Windows.Controls.ColorEditor
Assembly: Telerik.Windows.Controls.Input.dll
Syntax
public static class ColorExtensions : Object
Methods
ToCmykaColor(HexColor)
Converts a HexColor instance to a CmykaColor instance.
Declaration
public static CmykaColor ToCmykaColor(this HexColor color)
Parameters
HexColor
color
|
Returns
CmykaColor
|
ToCmykaColor(HlsaColor)
Converts a HlsaColor instance to a CmykaColor instance.
Declaration
public static CmykaColor ToCmykaColor(this HlsaColor color)
Parameters
HlsaColor
color
|
Returns
CmykaColor
|
ToCmykaColor(HsvaColor)
Converts a HsvaColor instance to a CmykaColor instance.
Declaration
public static CmykaColor ToCmykaColor(this HsvaColor color)
Parameters
HsvaColor
color
|
Returns
CmykaColor
|
ToCmykaColor(RgbaColor)
Converts a RgbaColor instance to a CmykaColor instance.
Declaration
public static CmykaColor ToCmykaColor(this RgbaColor color)
Parameters
RgbaColor
color
|
Returns
CmykaColor
|
ToHexColor(CmykaColor)
Converts a CmykaColor instance to a HexColor instance.
Declaration
public static HexColor ToHexColor(this CmykaColor color)
Parameters
CmykaColor
color
|
Returns
HexColor
|
ToHexColor(HlsaColor)
Declaration
public static HexColor ToHexColor(this HlsaColor color)
Parameters
HlsaColor
color
|
Returns
HexColor
|
ToHexColor(HsvaColor)
Declaration
public static HexColor ToHexColor(this HsvaColor color)
Parameters
HsvaColor
color
|
Returns
HexColor
|
ToHexColor(RgbaColor)
Declaration
public static HexColor ToHexColor(this RgbaColor color)
Parameters
RgbaColor
color
|
Returns
HexColor
|
ToHlsaColor(CmykaColor)
Converts a CmykaColor instance to a HlsaColor instance.
Declaration
public static HlsaColor ToHlsaColor(this CmykaColor color)
Parameters
CmykaColor
color
|
Returns
HlsaColor
|
ToHlsaColor(HexColor)
Declaration
public static HlsaColor ToHlsaColor(this HexColor color)
Parameters
HexColor
color
|
Returns
HlsaColor
|
ToHlsaColor(HsvaColor)
Declaration
public static HlsaColor ToHlsaColor(this HsvaColor color)
Parameters
HsvaColor
color
|
Returns
HlsaColor
|
ToHlsaColor(RgbaColor)
Declaration
public static HlsaColor ToHlsaColor(this RgbaColor color)
Parameters
RgbaColor
color
|
Returns
HlsaColor
|
ToHsvaColor(CmykaColor)
Converts a CmykaColor instance to a HsvaColor instance.
Declaration
public static HsvaColor ToHsvaColor(this CmykaColor color)
Parameters
CmykaColor
color
|
Returns
HsvaColor
|
ToHsvaColor(HexColor)
Declaration
public static HsvaColor ToHsvaColor(this HexColor color)
Parameters
HexColor
color
|
Returns
HsvaColor
|
ToHsvaColor(HlsaColor)
Declaration
public static HsvaColor ToHsvaColor(this HlsaColor color)
Parameters
HlsaColor
color
|
Returns
HsvaColor
|
ToHsvaColor(RgbaColor)
Declaration
public static HsvaColor ToHsvaColor(this RgbaColor color)
Parameters
RgbaColor
color
|
Returns
HsvaColor
|
ToRgbaColor(Color)
Converts a System.Windows.Media.Color instance to a RgbaColor instance.
Declaration
public static RgbaColor ToRgbaColor(this Color color)
Parameters
System.Windows.Media.Color
color
|
Returns
RgbaColor
|
ToRgbaColor(CmykaColor)
Converts a CmykaColor instance to a RgbaColor instance.
Declaration
public static RgbaColor ToRgbaColor(this CmykaColor color)
Parameters
CmykaColor
color
|
Returns
RgbaColor
|
ToRgbaColor(HexColor)
Declaration
public static RgbaColor ToRgbaColor(this HexColor color)
Parameters
HexColor
color
|
Returns
RgbaColor
|
ToRgbaColor(HlsaColor)
Declaration
public static RgbaColor ToRgbaColor(this HlsaColor color)
Parameters
HlsaColor
color
|
Returns
RgbaColor
|
ToRgbaColor(HsvaColor)
Declaration
public static RgbaColor ToRgbaColor(this HsvaColor color)
Parameters
HsvaColor
color
|
Returns
RgbaColor
|
ToSystemColor(HsvaColor)
Converts a HsvaColor instance to a System.Windows.Media.Color instance.
Declaration
public static Color ToSystemColor(this HsvaColor hsva)
Parameters
HsvaColor
hsva
|
Returns
System.Windows.Media.Color
|
ToSystemColor(RgbaColor)
Converts a RgbaColor instance to a System.Windows.Media.Color instance.
Declaration
public static Color ToSystemColor(this RgbaColor rgba)
Parameters
RgbaColor
rgba
|
Returns
System.Windows.Media.Color
|
ToSystemColor(UnifiedColor)
Converts a UnifiedColor instance to a System.Windows.Media.Color instance.
Declaration
public static Color ToSystemColor(this UnifiedColor unifiedColor)
Parameters
UnifiedColor
unifiedColor
|
Returns
System.Windows.Media.Color
|
ToUnifiedColor(Color)
Converts a System.Windows.Media.Color instance to a UnifiedColor instance.
Declaration
public static UnifiedColor ToUnifiedColor(this Color color)
Parameters
System.Windows.Media.Color
color
|
Returns
UnifiedColor
|
ToUnifiedColor(ColorViewModel)
Converts a ColorViewModel instance to a UnifiedColor instance.
Declaration
public static UnifiedColor ToUnifiedColor(this ColorViewModel viewModel)
Parameters
ColorViewModel
viewModel
|
Returns
UnifiedColor
|