By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,132 Members | 1,265 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,132 IT Pros & Developers. It's quick & easy.

FromArgb To ColorName

latitude
P: 50
Is it possible to use any procedures to get a color name from a random generated color using FromArgb ?

Edit: Using C#
Dec 18 '06 #1
Share this Question
Share on Google+
1 Reply


100+
P: 145
Is it possible to use any procedures to get a color name from a random generated color using FromArgb ?

Edit: Using C#
I'm not a C# user by any means, but I thought I'd at least try to help clarify for others what you're trying to do. Do you want to take an (R,G,B,A) value and match an approximate English color name, e.g., (139,69,19,0) = brown?

If that's the case (and regardless of programming language), what I would recommend is creating a table of known color values and English-equivalent names, and then choosing the best match among those colors values. For instance, you could make a list of 256 typical colors (from any Google search for color codes, more typically used for web design) and use those to get a best match.

I hope this helps get you started, or at the least is an interation towards further clarifying what you're looking to do. -- Paul
Dec 18 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.