Ejemplo n.º 1
0
        public bool Equals(pixel otherPixel)
        {
            bool isEqual = false;

            if (redEquals(otherPixel) &
                bluEquals(otherPixel) &
                grnEquals(otherPixel))
            {
                isEqual = true;
            }
            return(isEqual);
        }
Ejemplo n.º 2
0
        public bool grnEquals(pixel otherPixel)
        {
            bool isEqual = false;

            if (grnIntensity == otherPixel.grnIntensity &&
                grnEffectType == otherPixel.grnEffectType &&
                grnEndIntensity == otherPixel.grnEndIntensity &&
                grnEndCentisecond == otherPixel.grnEndCentisecond)
            {
                isEqual = true;
            }
            return(isEqual);
        }
Ejemplo n.º 3
0
        public bool bluEquals(pixel otherPixel)
        {
            bool isEqual = false;

            if (bluIntensity == otherPixel.bluIntensity &&
                bluEffectType == otherPixel.bluEffectType &&
                bluEndIntensity == otherPixel.bluEndIntensity &&
                bluEndCentisecond == otherPixel.bluEndCentisecond)
            {
                isEqual = true;
            }
            return(isEqual);
        }
Ejemplo n.º 4
0
        public bool redEquals(pixel otherPixel)
        {
            bool isEqual = false;

            if (redIntensity == otherPixel.redIntensity &&
                redEffectType == otherPixel.redEffectType &&
                redEndIntensity == otherPixel.redEndIntensity &&
                redEndCentisecond == otherPixel.redEndCentisecond)
            {
                isEqual = true;
            }
            return(isEqual);
        }