c#使用ExifLib 提取图像的 EXIF信息
2013-03-07 14:36
330 查看
来自:http://outofmemory.cn/code-snippet/479/c-usage-ExifLib-tiqu-image-EXIF-information
EXIF(Exchangeable image file format)是可交换图像文件的缩写,是专门为数码相机的照片设定的,可以记录数码照片的属性信息和拍摄数据。
EXIF最初由日本电子工业发展协会在1996年制定,版本为1.0。1998年,升级到2.1,增加了对音频文件的支持。2002年3月,发表了2.2版。
EXIF可以附加于JPEG、TIFF、RIFF等文件之中,为其增加有关数码相机拍摄信息的内容和索引图或图像处理软件的版本信息。
EXIF(Exchangeable image file format)是可交换图像文件的缩写,是专门为数码相机的照片设定的,可以记录数码照片的属性信息和拍摄数据。
EXIF最初由日本电子工业发展协会在1996年制定,版本为1.0。1998年,升级到2.1,增加了对音频文件的支持。2002年3月,发表了2.2版。
EXIF可以附加于JPEG、TIFF、RIFF等文件之中,为其增加有关数码相机拍摄信息的内容和索引图或图像处理软件的版本信息。
using ExifLib; ... ... ... // Instantiate the reader ExifReader reader = new ExifReader(@"C:\temp\testImage.jpg"); // Extract the tag data using the ExifTags enumeration DateTime datePictureTaken; if (reader.GetTagValue<DateTime>(ExifTags.DateTimeDigitized, out datePictureTaken)) { // Do whatever is required with the extracted information MessageBox.Show(this, string.Format("The picture was taken on {0}", datePictureTaken), "Image information", MessageBoxButtons.OK); }http://www.codeproject.com/Articles/36342/ExifLib-A-Fast-Exif-Data-Extractor-for-NET-2-0
相关文章推荐
- C#编辑图像文件EXIF信息
- 图像处理3_使用 metadata-extractor 解析图片 exif 元数据信息
- C#获取图像Exif信息
- C#提取照片的Exif信息显示在照片上
- C#获取图像Exif信息
- 菜鸟练习C#htmlparser----C#正则加htmlDOM进行网页解析腾讯新闻帖子列表相关信息提取
- c#.net使用webBrowser1获取网站信息源码
- 使用C#(.NET)来实现验证信息(邮箱、纯数字、电话号码、汉字、身份证号等)
- Palette使用,从图像中提取突出的颜色
- 黄聪:使用Python中的HTMLParser、cookielib抓取和解析网页、从HTML文档中提取链接、图像、文本、Cookies(二)
- 使用OpenExif修改jpeg图片信息
- [转]数码照片的JPG文件高级信息(用C#读取图片的EXIF信息)
- 以实例说明如何使用C#从数据库中提取数据,按要求自动生成定制的Excel表格
- 使用Palette类提取图片的颜色信息
- 提取JPEG图片中的EXIF信息
- 使用ExifInterface获取图片信息
- C#读取图片Exif信息
- c#使用PortableDeviceApiLib读取便携式设备(WPD:Windows Portable Devices)信息
- C#中使用嵌入资源的图像
- C# 获取图片的EXIF 信息 .