AspJpeg Advanced Use Method

Source: Internet
Author: User
#############################################################
# This copyright belongs to the rain wave, without the declaration please do not reprint everywhere #
# before the article turned everywhere, in fact, there are many good things abroad, the key is #
# Don't be afraid of English, more importantly, dare to accept the new, the domestic is a pot copy
# people want to find me also can add me QQ270499458, I vb.net programmer #
# used to be a political system, learned half a year of computer, and changed careers to do it
#############################################################
AspJpeg is a very powerful image processing component, a pure English version. However, there has been a free version and cracked version, but the detailed and in-depth introduction of the article is not much, even if there is only a picture of the thumbnail and image watermark. Maybe it's because of pure English. This is where I talk about the advanced usage of aspjpeg. The main technologies here include:
Thumbnail image
Picture watermark
Security Code Technology
Picture Cutting
Picture Merge
Database support
More less frequently Used method introduction
And some of the relevant practical techniques
AspJpeg the only point is that the output mode is relatively single. Here, we mainly talk about how to save the image processing and then call this output method. In addition, I am lazy, so some code is still quoted in the original file, do not understand the place I will explain!
The comrade who has studied VB or. NET must see it clearly. Brush again. Oh.
One, the picture is abbreviated
<%
Set Jpeg = Server.CreateObject ("Persits.jpeg") Invoke component
Path = Server.MapPath ("Images") & "clock.jpg" Picture path to process
Jpeg.open Path Open Picture
High and wide for the original picture of 1/2
Jpeg.width = JPEG.ORIGINALWIDTH/2
Jpeg.height = JPEG.ORIGINALHEIGHT/2
Save picture
Jpeg.save Server.MapPath ("Images") & "Clock_small.jpg"
%>
View processed Pictures
Second, picture watermark
<%
Set Jpeg = Server.CreateObject ("Persits.jpeg")
Jpeg.open Server.MapPath ("Images/dodge_viper.jpg")
Start writing text
Jpeg.Canvas.Font.Color = &hff0000 ' red color
Jpeg.Canvas.Font.Family = "Courier New" font
Jpeg.Canvas.Font.Bold = True is bold
Jpeg.Canvas.Print, "Copyright (c) XYZ, Inc."

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.