手机
当前位置:查字典教程网 >编程开发 >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 日期格式化函数

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

通过Response.Flush()实现下载失败的解决方法

asp 删除图片与文件函数

asp实现sql的备份与恢复

asp下同一空间多绑多哥域名的方法

[asp]怎么添加验证码的解决方法

TSYS资源特性的效率提高方法

Aspjpeg添加水印完整方法

在ASP中调用存储过程的几种方法

精品推荐
分类导航