PDA

Click to See Complete Forum and Search --> : *RESOLVED* converting colors to RGB values


MrPolite
Oct 1st, 2002, 10:47 AM
I have a Drawing.Color variable. How can I get its RGB values?
.ToArgb method returns one single number, I want to have it in red green blue. I tried ColorConvertor and ColorTranslator class, but I couldnt find a way:rolleyes:

Frans C
Oct 1st, 2002, 12:11 PM
How about:

Red = MyColor.R
Green = MyColor.G
Blue = MyColor.B

MrPolite
Oct 1st, 2002, 12:43 PM
Originally posted by Frans C
How about:

Red = MyColor.R
Green = MyColor.G
Blue = MyColor.B
OMG! I didnt notice that!
thanks :)