asp 그림 에 워 터 마크 기능 코드

1458 단어 그림.워 터 마크
 
'
Function WordWatermark(ImagePath)
Dim Image
Set Image= Server.CreateObject("Persits.Jpeg") '
Image.Open server.mappath(ImagePath) '
Image.Canvas.Font.Color = &H000000 ' , :
Image.Canvas.Font.Family = " " '
Image.Canvas.Font.Bold = False '
Image.Canvas.Font.Size = 26 '
Image.Canvas.Font.Quality = 4 '
Image.Canvas.Print Image.OriginalWidth/2-170,Image.OriginalHeight-30, " " '
Image.Save server.mappath(ImagePath) '
Set Image= Nothing
End Function

'
Function ImageWatermark(ImagePath)
Set Image = Server.CreateObject("Persits.Jpeg")
'
PhotoPath = Server.MapPath(ImagePath)
Image.Open PhotoPath
'
Set Logo = Server.CreateObject("Persits.Jpeg")
LogoPath = Server.MapPath("logo.jpg") '
Logo.Open LogoPath
Logo.Width = 121 '
Logo.Height = 50
Transition_Color = &h0066cc
'
Image.DrawImage Image.width-150, Image.height-59, Logo,1,Transition_Color,90
' (photo.width-210,photo.height-40 )
'
Image.Save Server.MapPath(ImagePath)

Set Photo = Nothing
End Function

좋은 웹페이지 즐겨찾기