在图像上增加文字 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);
    }
posted on 2018-10-02 21:24  武胜-阿伟  阅读(1094)  评论(0编辑  收藏  举报