TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Amresh S
NA
437
17.2k
How to convert integer color code to Argb color code?
Jun 16 2017 9:03 AM
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.
Reply
Answers (
4
)
System.Data.Entity.Core.EntityException:
bind records by passing column names dynamically in Mvc5