In C#, how can I convert a Color object into a byte value?
Color
byte
For example, the color #FFF would be converted to the value 255>
#FFF
255>
You could use the ColorTranslator.FromHtml function:
Color color = ColorTranslator.FromHtml("#FFF");