【发布时间】:2016-10-18 16:16:07
【问题描述】:
我需要在没有 exif 额外库的情况下获取图像拍摄日期,我在文档中找到的内容对我不起作用:
CGImageSource myImageSource;
myImageSource = CGImageSource.FromUrl (url, null);
var ns = new NSDictionary ();
var imageProperties = myImageSource.CopyProperties (ns, 0);
var date = imageProperties [ImageIO.CGImageProperties.ExifSubsecTimeOrginal];
var date2 = imageProperties [ImageIO.CGImageProperties.ExifDateTimeDigitized];
var date3 = imageProperties [ImageIO.CGImageProperties.TIFFDateTime];
所有这些都是 null ,但是当我使用 exif 库检查图像时,图像已拍摄日期。
什么不正确?
【问题讨论】:
标签: exif cgimage xamarin.mac