PHP Classes

File: testTransparentImage.php

Recommend this page to a friend!
  Classes of Ilaya  >  Transparent Image  >  testTransparentImage.php  >  Download  
File: testTransparentImage.php
Role: Example script
Content type: text/plain
Description: testTransparentImage
Class: Transparent Image
Create an image from a set of transparent images
Author: By
Last change:
Date: 9 years ago
Size: 751 bytes


Class file image Download

include_once "transparentimage.class.php";

//creating a new instance of your shiny new avatar class :)
$transparentImage = new TransparentImage;

//set the image width

// setting output file
$output_file = "output/output.png";

// prepare the layer images
$layers[] = "images/test1.png";
$layers[] = "images/test2.png";
$layers[] = "images/test3.png";
$layers[] = "images/test4.png";
$layers[] = "images/test5.png";

$layerSize = count($layers);
$i= 0; $i < $layerSize; $i++) {

//create new avatar image for this user