Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }