Пример #1
0
        private static DateTime?ParseDateTime(Directory gpsDirectory, DateTimeStyles dateTimeStyles)
        {
            var timeStamp = gpsDirectory.GetRationalArray(GpsDirectory.TagTimeStamp);
            var dateStamp = gpsDirectory.GetString(GpsDirectory.TagDateStamp);

            if (timeStamp == null || dateStamp == null)
            {
                return(null);
            }

            var hour   = ParseRational(timeStamp[0], Convert.ToInt32);
            var minute = ParseRational(timeStamp[1], Convert.ToInt32);
            var second = ParseRational(timeStamp[2], Convert.ToInt32);
Пример #2
0
 /// <summary>A basic representation of the tag's type and value.</summary>
 /// <remarks>EG: <c>[ExifIfd0] F Number - f/2.8</c>.</remarks>
 /// <returns>The tag's type and value.</returns>
 public override string ToString() => $"[{DirectoryName}] {Name} - {Description ?? _directory.GetString(Type) + " (unable to formulate description)"}";