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