string hex = "0x333366"; int r = Convert.ToInt32(hex.Substring(2,2),16); int g = Convert.ToInt32(hex.Substring(4,2),16); int p = Convert.ToInt32(hex.Substring(6,2),16);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)