Realization of Image watermark code by ASP

Source: Internet
Author: User
The ASP realizes the picture to add the watermark code, wants to install the ASPJEPG component
<%
Set Jpeg1=server.createobject ("Persits.jpeg")
Jpeg1.open Server.MapPath ("1.jpg") ' artwork

' Add watermark
Set Jpeg2=server.createobject ("Persits.jpeg")
Jpeg2.open Server.MapPath ("watermark.gif") ' Watermark map

Jpeg1.canvas.drawimage 0,0,JPEG2,0.7,&HFFFFFF

' coordinates x, coordinates y, watermark, transparency, go white bottom

Jpeg1.save Server.MapPath ("2.jpg") ' after adding a watermark

Set jpeg1=nothing
Set jpeg2=nothing
%>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.