手机
当前位置:查字典教程网 >编程开发 >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处理查询超时的解决函数

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

asp中for循环的使用方法

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

asp制作的日历程序

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

关于ASP代码的加密的几个方法

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

asp获取数据库的连接属性的方法

精品推荐
分类导航