<%
Set Jpeg = Server.CreateObject("Persits.Jpeg")
Jpeg.Open "D:/webcar/wwwroot/ModelPic/"&request("model")&"/"&request("id")
if request("w")<>"" then
if jpeg.OriginalWidth>int(request("w")) then jpeg.Width = request("w")
end if
'jpeg.Height = jpeg.OriginalHeight * jpeg.Width / jpeg.OriginalWidth
if request("h")="" then
jpeg.Height = jpeg.OriginalHeight * jpeg.Width / jpeg.OriginalWidth
else
jpeg.Height=request("h")
if request("w")="" then jpeg.Width = jpeg.OriginalWidth * jpeg.Height / jpeg.OriginalHeight end if
end if
Jpeg.Canvas.DrawPNG jpeg.Width-190, jpeg.Height-80, "D:/webcar/wwwroot/image/sy.png"
Jpeg.SendBinary
%>
aspjpeg 添加PNG水印 最简洁代码
最新推荐文章于 2017-01-08 17:56:18 发布