文件名称:imgadddate
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2013-06-17
- 文件大小:
- 12kb
- 下载次数:
- 0次
- 提 供 者:
- tpu****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
C#给图片加日期,类似于图片水印,不过要比水印稍简单些,添加数码相片拍摄日期,实现过程概述:
获取元数据中的拍照日期时间,以字符串形式保存,分析字符串分别保存拍照日期和时间的标准格式,由列表中的文件创建内存位图对象,由位图对象创建Graphics对象的实例,绘制数码照片的日期/时间,将添加日期/时间戳后的图像进行保存,释放内存位图对象。
#region 获取数码相片的拍摄日期:
获取图像文件的所有元数据属性,保存倒PropertyItem数组,通过指定的数据流来创建Image,遍历所有元数据,获取拍照日期/时间,遍历图像文件元数据,检索所有属性,如果是PropertyTagDateTime,则返回该属性所对应的值,若没有相关的EXIF信息则返回N/A-C# to the picture and the date, similar to the picture watermark, but slightly simpler than the watermark, add digital photo shooting date, to achieve Process Overview: Get metadata camera date and time, stored as a string, parse the string stored separately photos standard format for the date and time from the list of files to create a memory bitmap object from a bitmap object to create an instance of the Graphics object to draw digital photo date/time, add date/time stamp the image to be saved, freeing memory Bitmap object.# Region for digital photo shooting date: Get all image file metadata attributes, save pour PropertyItem array by specifying the data stream to create Image, through all metadata for photos date/time, traverse the image file metadata retrieval All properties, if PropertyTagDateTime, return the property value corresponding to, if not related to the EXIF information for the return N/A
获取元数据中的拍照日期时间,以字符串形式保存,分析字符串分别保存拍照日期和时间的标准格式,由列表中的文件创建内存位图对象,由位图对象创建Graphics对象的实例,绘制数码照片的日期/时间,将添加日期/时间戳后的图像进行保存,释放内存位图对象。
#region 获取数码相片的拍摄日期:
获取图像文件的所有元数据属性,保存倒PropertyItem数组,通过指定的数据流来创建Image,遍历所有元数据,获取拍照日期/时间,遍历图像文件元数据,检索所有属性,如果是PropertyTagDateTime,则返回该属性所对应的值,若没有相关的EXIF信息则返回N/A-C# to the picture and the date, similar to the picture watermark, but slightly simpler than the watermark, add digital photo shooting date, to achieve Process Overview: Get metadata camera date and time, stored as a string, parse the string stored separately photos standard format for the date and time from the list of files to create a memory bitmap object from a bitmap object to create an instance of the Graphics object to draw digital photo date/time, add date/time stamp the image to be saved, freeing memory Bitmap object.# Region for digital photo shooting date: Get all image file metadata attributes, save pour PropertyItem array by specifying the data stream to create Image, through all metadata for photos date/time, traverse the image file metadata retrieval All properties, if PropertyTagDateTime, return the property value corresponding to, if not related to the EXIF information for the return N/A
(系统自动生成,下载前可以参看下载内容)
下载文件列表
imgadddate\IMGAddDate\Form1.cs
..........\..........\Form1.Designer.cs
..........\..........\Form1.resx
..........\..........\IMGAddDate.csproj
..........\..........\Program.cs
..........\..........\...perties\AssemblyInfo.cs
..........\..........\..........\Resources.Designer.cs
..........\..........\..........\Resources.resx
..........\..........\..........\Settings.Designer.cs
..........\..........\..........\Settings.settings
..........\IMGAddDate.sln
..........\..........\Properties
..........\..........\Resources
..........\IMGAddDate
imgadddate