Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ciprian Voicu  >  Pictoru's GIF Text  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: test file
Class: Pictoru's GIF Text
Render text as images
Author: By
Last change:
Date: 2006-08-29 11:19
Size: 997 bytes
 

Contents

Class file image Download
<?
# EXAMPLE FILE
# -------------------------------------------------------------------------------
#    Name:            Pictoru's Gif Title                                                
#    Author:            Ciprian Voicu                                                
#    Version:         1.0                                                         
#    Date:            2006-08-29                                                    
#    Description:    • a simple class that creates and outputs gif images from 
#                    ttf fonts, usefull for texts which are not supported  by the 
#                    browsers
#    License:         GNU GPL                                                        
# -------------------------------------------------------------------------------

require_once("class.pGifTitle.php");

$img=new pGifTitle();

# Title(string text[, int font[, int size[, string fontcolor[, string bgcolor[, bool transparent]]]]]);
# text - the outputed text
# font - font identifier
# fontcolor - sets the font color (ex: #FF0000 or FF0000)
# bgcolor - sets the background color
# transparent - sets the transparent property for the background color

$img->Title("Pictoru's Test"125"FF0000""FFFFFF"true);
?>