KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a ARGB value stored as an int type. It was stored by calling ToArgb. I now want the byte values of the individual color channels from the int value. for example int mycolor = -16744448; byte r,g,b,a; GetBytesFromColor(mycolor,out a, out r, out g, out b); How would you implement GetBytesFromColor? To give the context I am passing a color value persisted in db as int to a silverlight application which needs the individual byte values to construct a color object. System.Windows.Media.Color.FromArgb(byte a, byte r, byte g, byte b)
Tags (comma-separated)
Save Edits
Cancel