PHP Classes

File: example1.php

Recommend this page to a friend!
  Classes of Shahid Karimi   Complete text to image conversion   example1.php   Download  
File: example1.php
Role: Example script
Content type: text/plain
Description: the class
Class: Complete text to image conversion
Render an image with a text
Author: By
Last change:
Date: 13 years ago
Size: 422 bytes
 

Contents

Class file image Download
<?php
include_once 'gdi.php';
$image = new GDI_image('Hellow World');
$image->file_name ='king';
$image->font_name = 'segoepr.ttf';
$image->font_size =40;
$image->pad =20;
$image->font_color = '#FF0000';
$image->border_options = 1;
$image->outline_color = '#ff00ff';
$image->shadow = true;
$image->shadow_offset =8;
$image->save_to_file = false;
$image->save();
//echo '<img src="'. $image->save() .'">';
?>