| 
<?php
 error_reporting(E_ALL);
 ini_set("display_errors",1);
 
 
 
 require_once('TextToImage.inc.php');
 $textToImage = new ConvertTextToImage;
 $textToImage->initializeImage(200, 150, 'white', 'red');
 
 /*
 // Optional Check - verify if the color entered by user is a web safe color
 if($textToImage->isWebSafeColor($color)) {
 // .... procede
 }
 else {
 // ... display warning !
 }
 */
 
 //$textToImage->ShowTextAsPng(10, 2,2, 'Hello World');
 //$textToImage->ShowTextAsJpg(10, 2,2, 'Rochak');
 //$textToImage->ShowTextAsGif(10, 11,11, 'Hello dude');
 
 //$textToImage->SaveTextAsGif(10, 11,11, 'Hello dude','hello');
 //$textToImage->SaveTextAsJpg(10, 11,11, 'Hello dude','filename');
 $textToImage->SaveTextAsPng(10, 11,11, 'Hello dude','filename');
 
 
 ?>
 
 
 |