PHP Classes

File: img.php

Recommend this page to a friend!
  Classes of Taslim Mazumder Sohel   Text to image with selected font   img.php   Download  
File: img.php
Role: Example script
Content type: text/plain
Description: Example
Class: Text to image with selected font
Generate an image with a given text
Author: By
Last change:
Date: 16 years ago
Size: 491 bytes
 

Contents

Class file image Download
<?php
/**
 * If it show "Fatal error: Call to undefined function: imagecreate()" then
 * you have to install GD. To know detail about GD
 * see that documentation : http://jp.php.net/imagecreate
 *
 */


ini_set("display_errors",1);

require_once(
'TextToImage.class.php');

$_im = new TextToImage();
$_im->makeImageF("New life in programming.","CENTURY.TTF");

//$_im->showAsJpg();

//$_im->showAsPng();
//$_im->saveAsPng("Image1");


$_im->showAsGif();



?>