问题描述
当我偶然发现这个问题.我没有使用System.Drawing的经验,所以我只是想知道,您如何在图像上绘制时间戳?另外,由于我对System.Drawing非常感兴趣,因此有什么最好的资源来学习如何很好地使用它以及它在各种情况下的应用?谢谢!
I was just browsing some questions when I stumbled upon this one. I am not experienced in System.Drawing, so I'm just wondering, how would you draw a timestamp onto an image? Also, as I'm very interested in System.Drawing, what are the best resources for learning how to use it well, and its application in various situations? Thank you!
推荐答案
听起来就像在Bitmap对象上对DrawText()使用GDI一样简单.只要您确定z顺序正确(即在背面),它就可以正常工作.我还没有尝试过,但是看起来效果很好.
It sounds like it would be as simple as using GDI to DrawText() on a Bitmap object. As long as you make sure the z-order is correct (i.e. at the back) it should work. I haven't tried it but that seems like it would work well.
这篇关于C#:在图像上绘制时间戳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!