How do I get the color from a hexadecimal color code using .NET?

前端 未结 16 1148
不思量自难忘°
不思量自难忘° 2020-11-22 06:45

How can I get a color from a hexadecimal color code (e.g. #FFDFD991)?

I am reading a file and am getting a hexadecimal color code. I need to create the

16条回答
  •  时光说笑
    2020-11-22 07:03

    If you mean HashCode as in .GetHashCode(), I'm afraid you can't go back. Hash functions are not bi-directional, you can go 'forward' only, not back.

    Follow Oded's suggestion if you need to get the color based on the hexadecimal value of the color.

提交回复
热议问题