在图像上增加文字 C#

2021-07-08 13:07

阅读:470

标签:for   inpu   png   NPU   span   file   wstring   data-   phi   

using (Image i = Image.FromFile(inputPath))
    {
    using (Graphics g = Graphics.FromImage(i))
        {
        g.DrawString("John", Font, Brushes.Black, new PointF(fX, fY1));
        g.DrawString("2018-10-01", Font, Brushes.Black, new PointF(fX, fY2));
        }
    i.Save(outputPath, ImageFormat.Png);
    }

在图像上增加文字 C#

标签:for   inpu   png   NPU   span   file   wstring   data-   phi   

原文地址:https://www.cnblogs.com/zeroone/p/9738107.html

上一篇:第一个C#程序:HelloWorld

下一篇:c# ,socket


评论


亲,登录后才可以留言!