コード例 #1
0
        /// <summary>
        /// Saves the exif information.
        /// </summary>
        /// <param name="bytes">The bytes.</param>
        /// <param name="momento">The momento.</param>
        /// <param name="session">The session.</param>
        /// <returns>System.Nullable{DateTime}.</returns>
        private static DateTime?SaveExifInformation(byte[] bytes, Momento momento, ISession session)
        {
            var      imageMetadata = new ExifData(session);
            DateTime?photoDateTime = imageMetadata.ExtractExifSave(new MemoryStream(bytes), momento);

            return(photoDateTime);
        }
コード例 #2
0
        /// <summary>
        /// Saves the exif information.
        /// </summary>
        /// <param name="bytes">The bytes.</param>
        /// <param name="momento">The momento.</param>
        /// <param name="session">The session.</param>
        /// <returns>System.Nullable{DateTime}.</returns>
        private static DateTime? SaveExifInformation(byte[] bytes, Momento momento, ISession session)
        {
            var imageMetadata = new ExifData(session);
            DateTime? photoDateTime = imageMetadata.ExtractExifSave(new MemoryStream(bytes), momento);

            return photoDateTime;
        }