Make PHP processing pictures easy based on GB library image processing class with instance code download _php Tutorial

Source: Internet
Author: User
This class of design ideas draws on jquery, using the Concatenating method to manipulate pictures, such as:
Copy CodeThe code is as follows:
$image = new Usaimage (Array (' filepath ' = ' image1.jpg '));
Picture image Overlay A picture, the second and third parameter is, the x, y position to place
$image->overlap ("Image99.gif", 10, 10)
Overwrite the picture with a relative position, the last parameter is the scale, the default is 1
->OVERLAP2 (' Image00.gif ', Array (' Right ' =>23, ' bottom ' =>50), 0.5)
Zoom the picture, set the maximum width and maximum height, and the picture will scale proportionally
->scale3 (300,300)
Output to the screen, automatically add the head, the type of jpg,imagetype_jpeg for the GB Library of PHP constant
->write (Imagetype_jpeg);

Effect:

More ways to see code comments

Code Download: Usaimage.rar

http://www.bkjia.com/PHPjc/323332.html www.bkjia.com true http://www.bkjia.com/PHPjc/323332.html techarticle The design idea of this class draws on jquery, using the Concatenating method to manipulate the image, such as: Copy code code as follows: $image = new Usaimage (' filepath ' = ' image1.jpg ');//Picture Picture ...

  • Related Article

    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.