如何在C#中将时间戳应用于图像 [英] how to apply time stamp to image in c#

查看:134
本文介绍了如何在C#中将时间戳应用于图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在c#中的图片上创建时间戳.因为当我保存图像时,它将覆盖已可用的已保存图片.所以我想创建一个时间戳.
我是c#的新手,如果有任何告诉我的代码,我将不胜感激.

How to create a time stamp on picture in c#. because when i am saving the image then it over write the already available saved picture . so i want to create a time stamp.
i am new to c#, if any one tell me the code i will be thankful.

推荐答案

^ ]

水印创建者 [为图像加水印的程序 [在VB.NET中为图像创建半透明水印 [
Creating a Watermarked Photograph with GDI+ for .NET[^]

Watermark Creator[^]

Program for Watermarking an Image[^]

Creating Semi-Transparent Watermarks for Images in VB.NET[^]


在这里.

获取日期时间&将其放在图片上的正确位置.

C#代码段教程-如何在图像上绘制文本 [ ^ ]
动态地在图像上写文本 [使用C#从文本生成图像,或使用C#将文本转换为图像 [使用C#以编程方式向文本添加文本 [ ^ ]

顺便说一句,对不起,因为我/我忙于采访,我无法回复你.什么是状态?
Here you go.

Get the date time & put it in right location on image.

C# Snippet Tutorial - How to Draw Text on an Image[^]
Dynamically Write Text On An Image[^]
Generate Image from text using C# OR Convert Text in to Image using C#[^]
Adding Text To Image Programmatically With C#[^]

BTW I''m sorry I couldn''t reply you because I was/am busy with interviews. What''s the status?


使用类似的东西来创建文件名:

String fileName = String.Format(@"{0}\image-{1}.jpg", path, DateTime.UtcNow.Ticks);
Use somthing like this to create the file name:

String fileName = String.Format(@"{0}\image-{1}.jpg", path, DateTime.UtcNow.Ticks);


这篇关于如何在C#中将时间戳应用于图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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