المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Convert color from RGB to Color name



C# Programming
10-14-2010, 02:51 PM
Hello,

I use a ColorEdit control in my form ( as picture )
I need to analyse the case when the user choose a color from Custom tab which the color is represtend in RGB structure as I know http://www.barakasoft.com/script/Forums/Images/smiley_line.gif

the problem that i need to translate this value (ie 245;245;220) to the color name (ie "beige") that i can save it after to use an other time by methode Color.FromName(name)

please can someone help me.
thank you

http://yfrog.com/63clipboard01kg[^ (http://yfrog.com/63clipboard01kg)]