aspJpeg图片水印有杂点的完美解决方法

发布时间:2021-08-17 12:10 来源: 阅读:0 作者: 栏目: ASP

操作实现函数:
代码如下:
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(图片名称)%>

免责声明:本站发布的内容(图片、视频和文字)以原创、来自互联网转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:ts@56dr.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。