从数据库读出IMAGE字段的数据 想显示的加水印怎么做啊

leida1983 2006-03-01 10:54:10
现在直接显示的 代码 如下
Response.ContentType = "application/octet-stream"; Response.BinaryWrite((Byte[])rdr["image"]);
Response.End();

但是 我想在显示图片的时候 在图片上面显示水印
谢谢 各位大虾了
...全文
121 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
BillTuan 2006-03-18
  • 打赏
  • 举报
回复
mark!
sxlfybb 2006-03-01
  • 打赏
  • 举报
回复
从数据库中读出数据,首先还原为Image类型,然后在此Image上方再次绘出一个透明的图像或一个文字就可以.最后写出Jpeg或者gif类型的图像文件就OK了
代码蜗牛sky 2006-03-01
  • 打赏
  • 举报
回复
System.Drawing.Image image = System.Drawing.Image.FromFile(path);
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();
代码蜗牛sky 2006-03-01
  • 打赏
  • 举报
回复
http://index.cnblogs.com/archive/2004/10/20/54498.aspx
ghxwzh 2006-03-01
  • 打赏
  • 举报
回复
这个是程序写的么?
lovvver 2006-03-01
  • 打赏
  • 举报
回复
这个可能比较难,不懂,帮你顶!
leida1983 2006-03-01
  • 打赏
  • 举报
回复
跪求 分不够 我会加的

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧