Exemple #1
0
        public static PixelF operator +(PixelF a, PixelF b)
        {
            PixelF c = a;

            c.A += b.A;
            c.B += b.B;
            c.G += b.G;
            c.R += b.R;
            return(c);
        }
Exemple #2
0
        public static PixelF operator +(PixelF a, int b)
        {
            PixelF c = a;

            c.A += b;
            c.B += b;
            c.G += b;
            c.R += b;
            return(c);
        }
Exemple #3
0
        public static PixelF operator *(PixelF a, PixelF b)
        {
            PixelF c = a;

            c.A *= b.A;
            c.B *= b.B;
            c.G *= b.G;
            c.R *= b.R;
            return(c);
        }
Exemple #4
0
        public static PixelF operator *(PixelF a, int b)
        {
            PixelF c = a;

            c.A *= b;
            c.B *= b;
            c.G *= b;
            c.R *= b;
            return(c);
        }
Exemple #5
0
        public static PixelF operator /(PixelF a, int b)
        {
            PixelF c = a;

            c.A /= b;
            c.B /= b;
            c.G /= b;
            c.R /= b;
            return(c);
        }
Exemple #6
0
        public static PixelF operator /(PixelF a, Pixel b)
        {
            PixelF c = a;

            c.A /= b.A;
            c.B /= b.B;
            c.G /= b.G;
            c.R /= b.R;
            return(c);
        }
Exemple #7
0
        public static PixelF operator -(PixelF a, int b)
        {
            PixelF c = a;

            c.A -= b;
            c.B -= b;
            c.G -= b;
            c.R -= b;
            return(c);
        }
Exemple #8
0
        public static PixelF operator -(PixelF a, PixelF b)
        {
            PixelF c = a;

            c.A -= b.A;
            c.B -= b.B;
            c.G -= b.G;
            c.R -= b.R;
            return(c);
        }
Exemple #9
0
        public static PixelF operator *(Pixel a, double b)
        {
            PixelF c = a;

            c.A *= (float)b;
            c.B *= (float)b;
            c.G *= (float)b;
            c.R *= (float)b;
            return(c);
        }