IsMatch() public static méthode

Returns whether these two fast bitmaps match in width, height and pixel data.
public static IsMatch ( FastBitmap fast_bitmap1, FastBitmap fast_bitmap2 ) : bool
fast_bitmap1 FastBitmap
fast_bitmap2 FastBitmap
Résultat bool
        /// <summary>
        /// Removes duplicate bitmaps from an enumerable FastBitmap collection and returns the resulting unique bitmap collection.
        /// </summary>
        /// <param name="bitmaps"></param>
        /// <returns></returns>
        public static List <FastBitmap> RemoveDuplicates(IEnumerable <FastBitmap> bitmaps)
        {
            List <FastBitmap> unique_bitmaps = new List <FastBitmap>();

            foreach (FastBitmap bitmap in bitmaps)
            {
                bool unique = true;

                foreach (FastBitmap unique_bitmap in unique_bitmaps)
                {
                    if (FastBitmap.IsMatch(bitmap, unique_bitmap))
                    {
                        unique = false;
                        break;
                    }
                }

                if (unique)
                {
                    unique_bitmaps.Add(bitmap);
                }
            }

            return(unique_bitmaps);
        }
        /// <summary>
        /// Tests whether this bitmap exists in the collection.
        /// </summary>
        /// <param name="bmps"></param>
        /// <returns>True if it matches a bitmap; false otherwise.</returns>
        public bool IsIn(IEnumerable <FastBitmap> bmps)
        {
            foreach (FastBitmap bmp in bmps)
            {
                if (FastBitmap.IsMatch(this, bmp))
                {
                    return(true);
                }
            }

            return(false);
        }