Class ColorExtension
Represents an extension class that provides the methods to convert the color values into different types such as System.Int32, Pixel and HsvColor.
Inheritance
System.Object
ColorExtension
Namespace: Syncfusion.UI.Xaml.Controls
Assembly: Syncfusion.SfShared.UWP.dll
Syntax
public static class ColorExtension : Object
Methods
AsInt(Color)
Gets the color as an integer
Declaration
public static int AsInt(this Color color)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Color | color | color value |
Returns
Type | Description |
---|---|
System.Int32 | returns color as an integer |
GetPixel(Color)
Gets pixel value from the color
Declaration
public static Pixel GetPixel(this Color color)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Color | color | color value |
Returns
Type | Description |
---|---|
Pixel | returns pixel value from the color |
ToHsv(Color)
Converts the RGBA color to HSV
Declaration
public static HsvColor ToHsv(this Color rgba)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Color | rgba | color value |
Returns
Type | Description |
---|---|
HsvColor | returns HSV color from RGB color |