PHP Classes

File: test.imagemask.php

Recommend this page to a friend!
  Classes of Andrew Collington   Image Masking   test.imagemask.php   Download  
File: test.imagemask.php
Role: Example script
Content type: text/plain
Description: A test file
Class: Image Masking
Apply masks to an image and output the cut image
Author: By
Last change:
Date: 19 years ago
Size: 375 bytes


Class file image Download

require 'class.imagemask.php';
$im = new imageMask($_POST['colour']);
    if (
$im->loadImage(dirname(__FILE__) . "/pictures/{$_POST['file']}"))
        if (
$im->applyMask(dirname(__FILE__) . "/masks/{$_POST['mask']}"))