I have the following code in C#:
Color c;
// Setup ARGB COLOR 80, 20, 86, 20
c = Color.FromArgb(80, 20, 86, 20);
int r, g, b, a;
r = c.R;
g = c.G;
b = c.B;
a = c.A;
MessageBox.Show("The color in RGBA format is : " +
r.ToString() + " " +
g.ToString() + " " +
b.ToString() + " " +
a.ToString());
I am attempting to convert the color to RGBA format. I was thinking that it would just be:
20, 86, 20, 80 <== RGBA ??
But the color does not render the same. Am I missing something? Is code needed to convert this?
Thanks Before Hand