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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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