Represents a 96-bit color with red, green and blue channels at 32 bits each.
예제 #1
0
        /// <summary>Checks whether this instance is equal to the specified object.</summary>
        /// <param name="obj">The object.</param>
        /// <returns>Whether this instance is equal to the specified object.</returns>
        public override bool Equals(object obj)
        {
            if (!(obj is Color96))
            {
                return(false);
            }
            Color96 x = (Color96)obj;

            if (this.R != x.R)
            {
                return(false);
            }
            if (this.G != x.G)
            {
                return(false);
            }
            if (this.B != x.B)
            {
                return(false);
            }
            return(true);
        }
예제 #2
0
 /// <summary>Checks whether two colors are equal.</summary>
 /// <param name="a">The first color.</param>
 /// <param name="b">The second color.</param>
 /// <returns>Whether the two colors are equal.</returns>
 public bool Equals(Color96 a, Color96 b)
 {
     return(a.R != b.R | a.G != b.G | a.B != b.B);
 }