添加EXIF信息,以图片在C# [英] Adding EXIF Info to Images in C#

查看:1089
本文介绍了添加EXIF信息,以图片在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想补充的基本EXIF信息像作者,相机型号,图片日期etc.Is有没有办法使用内置的类来做到这一点,而无需使用其他外部libraries.Does的图像格式,如JPEG,PNG,TIFF,BMP ,GIF支持所有的EXIF领域。

I want to add basic exif info to images like author,camera model,date etc.Is there a way to do this using the Inbuilt classes without using other external libraries.Does the image formats like JPEG,PNG,TIFF,BMP,GIF Support all EXIF Fields.

推荐答案

System.Drawing中允许与修改图片属性 PropertyItems / SetPropertyItem 。样本可以发现<一href="http://social.msdn.microsoft.com/Forums/uk/netfxbcl/thread/71d8de37-f52d-4faa-887a-793f8041110a">here.

System.Drawing allows modifying the image properties with PropertyItems/SetPropertyItem. A sample can be found here.

但是这种访问是很基本的和有大约相当多的库(参见例如如何编辑在.NET EXIF​​数据)。所以我想如果这是值得的麻烦。

But this access is quite basic and there are quite a few libraries around (see for instance How to edit EXIF data in .NET). So I wonder if it's worth the trouble.

毕竟,只有JPEG和TIFF文件支持EXIF元数据,根据维基百科

After all, only JPEG and TIFF files support EXIF metadata according to Wikipedia.

这篇关于添加EXIF信息,以图片在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆