Timeline for How do I get the color from a hexadecimal color code using .NET?
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 6, 2024 at 16:28 | history | edited | Baddack | CC BY-SA 4.0 |
fixed formatting, removed weird spacing
|
| Jul 16, 2016 at 9:10 | comment | added | Kibernetik | In UWP Color.FromArgb() requires 4 byte arguments. So it will look like: return Color.FromArgb(255, byte.Parse(hex.Substring(0, 2), System.Globalization.NumberStyles.HexNumber), byte.Parse(hex.Substring(2, 2), System.Globalization.NumberStyles.HexNumber), byte.Parse(hex.Substring(4, 2), System.Globalization.NumberStyles.HexNumber)); | |
| Jun 13, 2014 at 20:32 | history | answered | Baddack | CC BY-SA 3.0 |