System.Drawing.Brush b = new System.Drawing.SolidBrush(System.Drawing.Color.Green);

       

        try
        {
            g.DrawString(addText, f, b, 35, 35);
         
            bitmap.Save(waterTextPictureName);
        }
        catch (Exception ex)
        {
            errorMessage = ex.Message;
            throw ex;
        }
        finally
        {

            f.Dispose();
            b.Dispose();
            bitmap.Dispose();
            g.Dispose();
            image.Dispose();
        }
    }

相关文章:

  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2021-06-18
  • 2022-12-23
猜你喜欢
  • 2021-07-14
  • 2021-06-22
  • 2022-02-04
  • 2021-09-28
  • 2021-12-18
  • 2022-12-23
相关资源
相似解决方案