更新时间:2023-12-05 17:49:52
据我所知,这不是完全可能的每个十六进制颜色代码都有一个名称。
但你可以试试以下东西 -
1. Re查看十六进制代码的RGB值
2.找到最接近的颜色名称匹配
为此,请检查以下文章 -
找到几乎任何六角颜色和middot的名称;一个美丽的网站 [ ^ ]
以下是使用C#的其他一些解决方案 -
c# - 将十六进制代码转换为颜色名称 - Stack Overflow [ ^ ]
c# - 如何使用.NET从十六进制颜色代码中获取颜色? - 堆栈溢出 [ ^ ]
希望,它有帮助:)
As far I know, this is not completely possible as not every hex color code has a name.
However you can try following things-
1. Retrieve the RGB value of a hexcode
2. Find a closest color name match
To do this check following article-
Find a name for almost any hex color · A Beautiful Site[^]
Here are few other solutions using C#-
c# - convert hex code to color name - Stack Overflow[^]
c# - How to get Color from Hexadecimal color code using .NET? - Stack Overflow[^]
Hope, it helps :)