PHP Classes

File: gdExt_0.1.0a1/test_gdExtImage.php

Recommend this page to a friend!
  Classes of Victor Akinyemi   PHP GIF Animation Class   gdExt_0.1.0a1/test_gdExtImage.php   Download  
File: gdExt_0.1.0a1/test_gdExtImage.php
Role: Example script
Content type: text/plain
Description: Example for gdExtImage.
Class: PHP GIF Animation Class
Draw graphics and generate animated GIF images
Author: By
Last change: Added gdExtImage::roundrect() Example
Date: 11 years ago
Size: 359 bytes
 

Contents

Class file image Download
<?php

header
('Content-Type: image/png');

require(
'gdExtImage.class.php');

$dim = new gdExtImage(NULL, 100, 100);
$dim->rect(50, 50, 80, 80, array(50,50,90));
$dim->rect(0, 0, 30, 30, array(50,50,90));
$dim->roundrect(30,30,50,50,5,array(5,5,200));
$dim->text(2, 0, 40, 'GD');
$dim->text(2,10,50,'Library',array(5,200,5),TRUE);
$dim->save();

?>