Login   Register  
PHP Classes
elePHPant
Icontem

File: test.dropshadow.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 11 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(500);
    
$ds->applyShadow('CCCCCC');
    
$ds->showShadow('png');

?>