Adding text to an image file

前端 未结 3 1599
别那么骄傲
别那么骄傲 2021-01-04 12:57

I need to add text to an image file. I need to read one image file (jpg,png,gif) and I need add one line text to it.

3条回答
  •  执念已碎
    2021-01-04 13:31

    You can do this by using the Graphics object in C#. You can get a Graphics object from the picture ( image.CreateGraphics() - or something like this as I remember ) and the use some of the built in methods for adding text to it like : Graphycs.DrawString() or other related methods.

提交回复
热议问题