|
-
July 30th, 2009, 07:08 AM
#1
Get Color name from ARGB for customized color
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|