hth - Fr 30.01.15 18:08
Titel: EXIF - Information - DateTaken (WPF - Projekt)
C#-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9:
| FileInfo fi1 = new FileInfo("D:/Test.JPG");
FileStream fs = new FileStream(fi1.FullName, FileMode.Open, FileAccess.Read, FileShare.Read);
BitmapFrame bitmapFrame = BitmapFrame.Create(fs, BitmapCreateOptions.None, BitmapCacheOption.None);
BitmapMetadata bitmapMetadata = bitmapFrame.Metadata as BitmapMetadata;
var _date = (bitmapMetadata.GetQuery("System.Photo.DateTaken")); |
-----------------------------------------------------------
"_date" wird mir als "System.Runtime.InteropServices.ComTypes.FILETIME" angezeigt.
Ich benötige die eigentliche Erstellungszeit als String oder (und) als ulong.
hth
Moderiert von Th69: C#-Tags hinzugefügt