Example #1
0
        /// <summary>
        /// Equals - Returns whether or not the two pixel format channel masks are equal
        /// </summary>
        public static bool Equals(PixelFormatChannelMask left, PixelFormatChannelMask right)
        {
            int leftNumChannels  = left._mask != null ?  left._mask.Length : 0;
            int rightNumChannels = right._mask != null ? right._mask.Length : 0;

            if (leftNumChannels != rightNumChannels)
            {
                return(false);
            }

            for (int i = 0; i < leftNumChannels; ++i)
            {
                if (left._mask[i] != right._mask[i])
                {
                    return(false);
                }
            }

            return(true);
        }
Example #2
0
 public static bool Equals(PixelFormatChannelMask mask1, PixelFormatChannelMask mask2)
 {
     throw new NotImplementedException();
 }
 public static bool Equals(PixelFormatChannelMask left, PixelFormatChannelMask right)
 {
   return default(bool);
 }
		public static bool Equals (PixelFormatChannelMask mask1, PixelFormatChannelMask mask2)
		{
			throw new NotImplementedException ();
		}
 public static bool Equals(PixelFormatChannelMask left, PixelFormatChannelMask right)
 {
     return(default(bool));
 }