在图像上增加文字 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); }


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM