手机
当前位置:查字典教程网 >编程开发 >ASP教程 >aspJpeg图片水印有杂点的完美解决方法
aspJpeg图片水印有杂点的完美解决方法
摘要:操作实现函数:复制代码代码如下:FunctionAddWater(n)SetPhoto=Server.CreateObject("Persi...

操作实现函数:

复制代码 代码如下:

Function AddWater(n)

Set Photo = Server.CreateObject("Persits.Jpeg")

PhotoPath = Server.MapPath(n)

Photo.Open PhotoPath

Photo.Interpolation=1

Photo.Quality=100

iWidth=Photo.OriginalWidth

iHeight=Photo.OriginalHeight

iiwidth=214 '水印图片的宽度

iiheight=51 '水印图片的高度

Photo.Canvas.DrawPNG iWidth-iiWidth-5, iHeight-iiHeight-5,Server.MapPath("Water.png") 'Water.png即为水印图片

Photo.save Server.mappath(n) '输出图片

Set Photo = Nothing

End Function

调用方法:

<% Call AddWater(图片名称)%>

【aspJpeg图片水印有杂点的完美解决方法】相关文章:

asp中利用CSW中文分词组件来实现自己网站的内容关键词自动提取

ASP处理查询超时的解决函数

Microsoft JET Database Engine 错误 '80004005' 未指定的错误的完美解决方法

ASP验证码不显示或始终不正确解决方法

asp实现sql的备份与恢复

ASP获取到的系统时间有上午,下午的解决方法

大数量查询分页显示 微软的解决办法

asp中for循环的使用方法

asp中设置session过期时间方法总结

ASP中js左侧多级菜单动态的解决方案

精品推荐
分类导航