c#BitmapMetadata photoshop:DateCreated

时间:2017-03-14 18:01:30

标签: c# bitmap metadata photoshop datecreated

使用C#,BitmapMetadata处理来自Adobe Lightroom的图像。 即使我能在记事本和Lightroom中看到它,我也无法进入photoshop:DateCreated字段。我还没有找到适合我的解决方案。感谢任何建议。

// This works for getting lots of the items I see in Lightroom. 
BitmapSource img = BitmapFrame.Create(new Uri(str_imagePath)); 
BitmapMetadata meta = (BitmapMetadata)img.Metadata;

// can find Title, Rating, Subject, keyWords, authors, comment, copyright 
Console.WriteLine(" Title: {0}", meta.Title);
Console.WriteLine("  Rating: {0}", meta.Rating);

// can not get to photoshop:DateCreated - hoping query would work
if (meta.ContainsQuery(@"photoshop:DateCreated"))
     Console.WriteLine("  contains1 ");

// briefly, here is what I can see in notepad: photoshop string comes right after rating            

 xmp:Rating="2"  
 photoshop:DateCreated="1916-08-01T07:00:00"

我已将this link添加到我的tiff文件中。

谢谢大家。

0 个答案:

没有答案