Get color name from ARGB

D

Dan Reber

I have a color that was derived from

Color color = new Color();
color = Color.FromArgb(alpha, red, green, blue);

and I want to get the name of the color if it is known. I tried
'color.IsNamedColor' but based on MSDN, IsNamedColor will return false if
'FromArgb' was used even if the ARGB value matches the ARGB value of a
predefined color. Does anybody know of a way to get the name of a color if
it was defined using Color.FromArgb?

Thanks

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top