Hi denny
这个得分两步实现:
1, 检查你想要保存的EXIF信息是否是read-only状态的,可以参考:http://msdn.microsoft.com/en-us/library/windows/desktop/ee872003(v=vs.85).aspx,比如说像白平衡这个属性,是可以写入到Image中的:
System.Photo.WhiteBalance Photo Metadata Policy
2, 使用如下代码把可以写入的数据写入到图片中,注意:如果一旦有数据错误或者无法写入,那么所有的数据均无法写入。
var propertyToSave = new List<KeyValuePair<string, object>>() {
new KeyValuePair<string, object>("System.Photo.LensManufacturer", "Canon") };
await file.Properties.SavePropertiesAsync(propertyToSave);
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.