PixelFarm.Drawing.Color.operator C# (CSharp) Méthode

operator() static public méthode

static public operator ( ) : Color
Résultat Color
        static public Color operator +(Color A, Color B)
        {
            byte r = (byte)((A.r + B.r) > 255 ? 255 : (A.r + B.r));
            byte g = (byte)((A.g + B.g) > 255 ? 255 : (A.g + B.g));
            byte b = (byte)((A.b + B.b) > 255 ? 255 : (A.b + B.b));
            byte a = (byte)((A.a + B.a) > 255 ? 255 : (A.a + B.a));
            return new Color(a, r, g, b);
        }

Same methods

Color::operator ( ) : bool