File: test.php

Recommend this page to a friend!
  Classes of Aleix Cabistany  >  Image Merge  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Shows how to use the class
Class: Image Merge
Overlay several images into a single image
Author: By
Last change:
Date: 8 years ago
Size: 459 bytes
 

Contents

Class file image Download
<?php

require_once("ImgMerge.php");


//sample usage

/*
//for file save:
$merge = new ImgMerge(array("base.png", 'logo.jpg', "coberta.png"), 'center', 'button.png');
*/

//for image output
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
Header( "Content-type: image/png");
$merge = new ImgMerge(array("base.png", 'logo.jpg', "coberta.png"), 'center');
?>


For more information send a message to info at phpclasses dot org.