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)));
Kindly share your ideas.
Thanks in advance.
Regards,
Amresh S.


Ravi SangtaniRank #1,947 · 751 reputationPosted Jun 16, 2017, 5:35 AM EDT
Manikandan MurugesanRank #300 · 8.4K reputationPosted Jun 16, 2017, 8:53 AM EDT
Amresh SRank #5,790 · 286 reputationPosted Jun 18, 2017, 8:11 PM EDT
Amresh SRank #5,790 · 286 reputationPosted Jun 18, 2017, 8:20 PM EDT