vinnureddy
July 30th, 2009, 07:08 AM
Hi,
how can we get Color name when ARGB value is given for a customized color.I tried in many ways.Able to get the when it is a known color or named color.
My project needs to capture the image from webcam and from the image i need to get the color from the specified pixel and should confirm that expected image came.
when it is named color..it is very simple.
Code :
string Name = "Give here Hex value of the required color";
ColorConverter cc = new ColorConverter();
Color c = (Color)cc.ConvertFromString(Name);
if (c.IsNamedColor)
Name = c.Name;
Help is required in the case of custom color.
Thanks
vinni
how can we get Color name when ARGB value is given for a customized color.I tried in many ways.Able to get the when it is a known color or named color.
My project needs to capture the image from webcam and from the image i need to get the color from the specified pixel and should confirm that expected image came.
when it is named color..it is very simple.
Code :
string Name = "Give here Hex value of the required color";
ColorConverter cc = new ColorConverter();
Color c = (Color)cc.ConvertFromString(Name);
if (c.IsNamedColor)
Name = c.Name;
Help is required in the case of custom color.
Thanks
vinni