Hi All,
I need to convert a integer color code to Argb color code in UWP. I had already achieved this in WPF by the below formaula:
- var blueValue = colorValue / 65536;
- var greenValue = (colorValue - blueValue * 65536) / 256;
- var redValue = colorValue - blueValue * 65536 - greenValue * 256;
- return new SolidColorBrush(Color.FromRgb(Convert.ToByte(redValue), Convert.ToByte(greenValue), Convert.ToByte(blueValue)));
Now, i need to convert the integer value to Argb color code.
Kindly share your ideas.
Thanks in advance.
Regards,
Amresh S.