zoukankan      html  css  js  c++  java
  • 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
    %>

  • 相关阅读:

    类(重要的很)
    异常
    异常
    面向对象oop接口
    面向对象oop多态
    Day10_数组(下)
    Day09_数组(上)
    Day08_网络编程(上)
    Day07_java对象下
  • 原文地址:https://www.cnblogs.com/y0umer/p/3839393.html
Copyright © 2011-2022 走看看