Example #1
0
        public bool Equals(pixel otherPixel)
        {
            bool isEqual = false;

            if (redEquals(otherPixel) &
                bluEquals(otherPixel) &
                grnEquals(otherPixel))
            {
                isEqual = true;
            }
            return(isEqual);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }