c#位图元数据photoshop:DateCreated
使用C#,c#位图元数据photoshop:DateCreated,c#,bitmap,metadata,photoshop,datecreated,C#,Bitmap,Metadata,Photoshop,Datecreated,使用C#,BitmapMetadata处理来自Adobe Lightroom的图像。 我一直无法访问photoshop:DateCreated字段,尽管我可以在记事本和Lightroom中看到它。我还没有找到适合我的解决方案。感谢您的建议 // This works for getting lots of the items I see in Lightroom. BitmapSource img = BitmapFrame.Create(new Uri(str_imagePath)); B
BitmapMetadata
处理来自Adobe Lightroom的图像。
我一直无法访问photoshop:DateCreated
字段,尽管我可以在记事本和Lightroom中看到它。我还没有找到适合我的解决方案。感谢您的建议
// 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"
我已将其包含到我的tiff文件中
谢谢大家。请格式化代码示例请格式化代码示例