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


how can color hexadecimal color code (e.g. #ffdfd991)?

i reading file , getting hexadecimal color code. need create corresponding system.windows.media.color instance hexadecimal color code. there inbuilt method in framework this?

i'm assuming that's argb code... referring system.drawing.color or system.windows.media.color? latter used in wpf example. haven't seen mention yet, in case looking it:

using system.windows.media;  color color = (color)colorconverter.convertfromstring("#ffdfd991"); 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -