protected void Page_Load(object sender, EventArgs e) { string newfileName = Server.MapPath("img/") + DateTime.Now.Millisecond + "" + DateTime.Now.Second + ".jpg"; ImageManager im = new ImageManager(); //调用很简单 im.SaveWatermark(原图地址, 水印地址, 透明度, 水印位置, 边距,保存到的位置); im.SaveWatermark(Server.MapPath("img/Chrysanthemum.jpg"), Server.MapPath("img/woshi.jpg"), 0.9f, ImageManager.WatermarkPosition.RigthBottom, 10, newfileName); }
总结