在图像上增加文字 C#

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);
    }
原文地址:https://www.cnblogs.com/zeroone/p/9738107.html