欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

aspJpeg圖片水印有雜點(diǎn)的完美解決方法

 更新時(shí)間:2010年09月14日 00:09:16   作者:  
這里成功的關(guān)鍵在于:水印圖片一定要是png格式的,且在去掉背景的情況下效果也一樣。
操作實(shí)現(xiàn)函數(shù):
復(fù)制代碼 代碼如下:

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

調(diào)用方法:
<% Call AddWater(圖片名稱)%>

相關(guān)文章

最新評(píng)論