I have an app which pull the ARGB values of background color from a Isolated storage setting; where I have given the values in int datatype. however the color.fromargb() requires byte datatype but when i cast it, it gives an exception "invalid cast"
here is the exception code:
backcolor.Color = Color.FromArgb((byte)dailyspring_settings["back_color_a"],(byte)dailyspring_settings["back_color_r"], (byte)dailyspring_settings["back_color_g"], (byte)dailyspring_settings["back_color_b"]);
the isolated storage code
dailyspring_settings.Add("back_color_a",100 );
dailyspring_settings.Add("back_color_r",103 );
dailyspring_settings.Add("back_color_g",158 );
dailyspring_settings.Add("back_color_b",236);