1. 程式人生 > >在圖像上增加文字 C#

在圖像上增加文字 C#

int poi put ont rap aws png guess ima

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#