手机
当前位置:查字典教程网 >编程开发 >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图片水印有杂点的完美解决方法】相关文章:

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

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

asp 常用的字符串处理函数

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

asp文件上传错误'800a0005'的解决方法

ASP简洁的多重查询的解决方案

ASP获取新增记录ID值的方法

asp 日期格式化函数

Session对象失效的客户端解决方法

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

精品推荐
分类导航