C#加水印不依赖任何第三方库,可倾斜角度的水印终于实现了,没有想象中复杂。如图:

图片加水印C#源代码

代码调用异常简单:

 protected void Page_Load(object sender, EventArgs e)
        {
            Response.ContentType = "image/jpeg";
            var imgPath = Server.MapPath("~/test.jpg");
            var w = new ImageWatermark(imgPath);
            var bmp = w.AddMark("唐若雪");
            bmp.Save(Response.OutputStream,ImageFormat.Jpeg);
        }

获取全部源代码

 

相关文章:

  • 2022-12-23
  • 2021-05-20
  • 2021-12-26
  • 2021-12-29
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-13
  • 2021-12-16
  • 2021-07-02
  • 2021-12-20
  • 2022-12-23
相关资源
相似解决方案