Color Utilities¶Non-Visible component
|Utilities||API 19, Android 4.4 - 4.4.4 KitKat||1|
A non-visible component that performs operations like conversion between formats, lightening, and darkening on color data.
Convert Hex To Int¶
Convert a hex color to a integer color. The result is returned as integer.
Convert Int To Hex¶
Convert a integer color to a hex color. The result is returned as string.
Returns the luminance of a color as a float between 0.0 and 1.0. The result is returned as double.
Is Dark Color¶
Returns true if the color is dark, else it returns false, means the color is light. The result is returned as boolean.
Set Alpha Value¶
Set a alpha value to a color. The result is returned as integer.