I am getting the error \"Cannot implicitly convert type \'int\' to \'byte\'. An explicit conversion exists (are you missing a cast?)\". Doesn\'t byte + byte = byte
byte + byte = byte
Adding two bytes produces an integer in C#. Convert the entire thing back to a byte.
rgb.Red = (byte)(Convert.ToByte(Math.Round((h - 4) * delta)) + rgb.Green);
See byte + byte = int... why? for more information.