Exemple #1
0
 public CoreImageInfo(ref CoreDll.adImageInfoW imageInfo)
 {
     id         = (ulong)imageInfo.id;
     path       = imageInfo.path;
     size       = imageInfo.size;
     time       = imageInfo.time;
     type       = imageInfo.type;
     width      = imageInfo.width;
     height     = imageInfo.height;
     blockiness = imageInfo.blockiness;
     blurring   = imageInfo.blurring;
     exifInfo   = imageInfo.exifInfo;
 }
        /// <summary>
        /// Проверка равны ли Exif.
        /// </summary>
        private bool ExifEqual(CoreDll.adImageExifW imageExif1, CoreDll.adImageExifW imageExif2)
        {
            if (imageExif1.isEmpty == imageExif2.isEmpty &&
                imageExif1.artist.CompareTo(imageExif2.artist) == 0 &&
                imageExif1.dateTime.CompareTo(imageExif2.dateTime) == 0 &&
                imageExif1.equipMake.CompareTo(imageExif2.equipMake) == 0 &&
                imageExif1.equipModel.CompareTo(imageExif2.equipModel) == 0 &&
                imageExif1.imageDescription.CompareTo(imageExif2.imageDescription) == 0 &&
                imageExif1.softwareUsed.CompareTo(imageExif2.softwareUsed) == 0 &&
                imageExif1.userComment.CompareTo(imageExif2.userComment) == 0)
            {
                return(true);
            }

            return(false);
        }