aspjpeg 添加PNG水印 最简洁代码

<%
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
%>

上一篇:排序算法(八):计数排序


下一篇:android微信付费