现在直接显示的 代码 如下
Response.ContentType = "application/octet-stream"; Response.BinaryWrite((Byte[])rdr["image"]);
Response.End(); 但是 我想在显示图片的时候 在图片上面显示水印
谢谢 各位大虾了
Response.ContentType = "application/octet-stream"; Response.BinaryWrite((Byte[])rdr["image"]);
Response.End(); 但是 我想在显示图片的时候 在图片上面显示水印
谢谢 各位大虾了
System.Drawing.Image copyImage = System.Drawing.Image.FromFile( Server.MapPath(".") + "/Alex.gif");
Graphics g = Graphics.FromImage(image);
g.DrawImage(copyImage, new Rectangle(image.Width-copyImage.Width, image.Height-copyImage.Height, copyImage.Width, copyImage.Height), 0, 0, copyImage.Width, copyImage.Height, GraphicsUnit.Pixel);
g.Dispose();