Color red = Color.FromArgb(255, 0, 0); Color blue = Color.FromArgb(0, 0, 255); Color purple = Color.Add(red, blue); // purple is now (255, 0, 255)
Color originalColor = Color.FromArgb(100, 100, 100); Color lightenedColor = Color.Add(originalColor, Color.White); // lightenedColor is now (255, 255, 255)The Color class is part of the System.Drawing namespace, which is included in the .NET Framework Class Library.