EXIFextractor library to extract EXIF information

2007年03月21日  |  4:54 下午分类:Develop  |  

项目中需要显示图片的Exif信息,在CodeProject上找到实现方法
以下是Console输出的效果

System.Drawing.Bitmap bmp =              new System.Drawing.Bitmap("F:\\DSCI0006.JPG");

// create a new instance of Extractor // class. Here "\n" is the newline // that is used to seprate output of two tags. // You can replace it with "," if you wantGoheer.EXIF.EXIFextractor er =              new Goheer.EXIF.EXIFextractor(ref bmp,"\n");

// now dump all the tags on consoleConsole.Write(er); 

// to set a tag you have to specify the tag id// code 0x13B is for artist name// since this number has ascii string with // it pass the string you want to seter.setTag(0x13B,"http://www.goheer.com");

// dispose the image here or do whatever you want.//

CodeProject上的地址http://www.codeproject.com/csharp/exifextractor.asp

转载时务必以超链接形式标明文章原始出处和作者信息。

相关文章

  • 暂无相关日志

发表您的评论

1410168172122013183195114157619