文件名称:imgadddate
-
所属分类:
- 标签属性:
- 上传时间:2013-06-17
-
文件大小:12.22kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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
imgadddate/IMGAddDate/Form1.Designer.cs
imgadddate/IMGAddDate/Form1.resx
imgadddate/IMGAddDate/IMGAddDate.csproj
imgadddate/IMGAddDate/Program.cs
imgadddate/IMGAddDate/Properties/AssemblyInfo.cs
imgadddate/IMGAddDate/Properties/Resources.Designer.cs
imgadddate/IMGAddDate/Properties/Resources.resx
imgadddate/IMGAddDate/Properties/Settings.Designer.cs
imgadddate/IMGAddDate/Properties/Settings.settings
imgadddate/IMGAddDate.sln
imgadddate/IMGAddDate/Properties
imgadddate/IMGAddDate/Resources
imgadddate/IMGAddDate
imgadddate
imgadddate/IMGAddDate/Form1.Designer.cs
imgadddate/IMGAddDate/Form1.resx
imgadddate/IMGAddDate/IMGAddDate.csproj
imgadddate/IMGAddDate/Program.cs
imgadddate/IMGAddDate/Properties/AssemblyInfo.cs
imgadddate/IMGAddDate/Properties/Resources.Designer.cs
imgadddate/IMGAddDate/Properties/Resources.resx
imgadddate/IMGAddDate/Properties/Settings.Designer.cs
imgadddate/IMGAddDate/Properties/Settings.settings
imgadddate/IMGAddDate.sln
imgadddate/IMGAddDate/Properties
imgadddate/IMGAddDate/Resources
imgadddate/IMGAddDate
imgadddate
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.