您现在的位置是:网站首页> 编程资料编程资料
aspJpeg图片水印有杂点的完美解决方法_应用技巧_
2023-05-25
309人已围观
简介 aspJpeg图片水印有杂点的完美解决方法_应用技巧_
操作实现函数:
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(图片名称)%>
复制代码 代码如下:
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(图片名称)%>
您可能感兴趣的文章:
相关内容
- JavaScript实现带自动提示的文本框效果代码_木马相关_
- asp CutStrX字符串截取函数(过滤全部HTML标记)_应用技巧_
- 从一个网站扒下的asp生成静态页面的代码 特供版_应用技巧_
- Asp中Server.ScriptTimeOut属性需要注意的一点分析_应用技巧_
- ASP JSON类文件的使用方法_应用技巧_
- ASP JSON类源码分享_应用技巧_
- ASP 使用Filter函数来检索数组的实现代码_应用技巧_
- asp 批量删除选中的多条记录的实现代码_应用技巧_
- asp中将相对路径转换为绝对路径的函数代码_应用技巧_
- asp统计信息实现代码/文章每日、每周、每月、总访问量的方法_应用技巧_