string name= this.FileUpload1.PostedFile.FileName;
Bitmap bit = new Bitmap(name);
Graphics g = Graphics.FromImage(bit);
g.SmoothingMode= System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
//添加要添加水印的字替换“我的测试版本”改为你要的字即可
g.DrawString ("我的测试版本",new Font ("宋体",40,FontStyle.Regular), SystemBrushes .WindowText,new PointF());
Response.ContentType = "Image/jpeg";
string savepth = Server.MapPath("images");
bit.Save(savepth+"//aa.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
bit.Dispose();
g.Dispose();