PHP Classes

File: test.dropshadow.php

Recommend this page to a friend!
  Classes of Andrew Collington   class.dropshadow.php   test.dropshadow.php   Download  
File: test.dropshadow.php
Role: Example script
Content type: text/plain
Description: An example of how to use
Class: class.dropshadow.php
Create images/thumbnails with a drop-shadow effect
Author: By
Last change: Demonstrates a simple way to use version 2 of the dropshadow/thumbnail class.
Date: 20 years ago
Size: 242 bytes
 

Contents

Class file image Download
<?php

   
require "class.dropshadow.php";

   
$ds = new dropShadow(FALSE);
   
$ds->setShadowPath('./shadows/');
   
$ds->loadImage('./images/test.jpg');
   
$ds->resizeByPercent(50, 0);
   
$ds->applyShadow('CCCCCC');
   
$ds->showShadow('png');

?>