Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2012-04-11 14:23
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');
?>