Color myColor = Color.FromArgb(255, 255, 0, 0); // Creates a red color with maximum opacity.
Color myColor = Color.Blue; // Assigns the built-in color "Blue" to myColor.
int alpha = myColor.A; // Gets the alpha (opacity) value of myColor. int red = myColor.R; // Gets the red value of myColor. int green = myColor.G; // Gets the green value of myColor. int blue = myColor.B; // Gets the blue value of myColor.The Color class is part of the System.Drawing library.