Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
c#位图元数据photoshop:DateCreated_C#_Bitmap_Metadata_Photoshop_Datecreated - Fatal编程技术网

c#位图元数据photoshop:DateCreated

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

使用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)); 
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文件中


谢谢大家。

请格式化代码示例请格式化代码示例