Login   Register  
PHP Classes
elePHPant
Icontem

File: magicman.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of George Clarke  >  ATextImage  >  magicman.php  >  Download  
File: magicman.php
Role: Example script
Content type: text/plain
Description: Putting text at the bottom of a photo.
Class: ATextImage
Layout and render text on images
Author: By
Last change:
Date: 9 years ago
Size: 544 bytes
 

Contents

Class file image Download
<?php
require "class.atextimage.php";
$timg = new ATextImage();
$timg->SetFont("arial.ttf",9);
$timg->SetBackground(255,255,255);
$timg->SetTextColor(255,100,0);
$timg->SetPos("center","bottom","center");       // (horizontal,vertical) positions
$timg->AddLine("The Award-Winning Close-Up Magic of");
$timg->AddLine("Clarke D. Aldridge-Magician Extraordinaire");
$timg->AddLine("Lakeland, Florida USA");
$timg->AddLine("http://www.clarkealdridge.com");
$timg->CreateImage("Clarke.jpg");
$timg->MakeImage();
$timg->ShowGif();
?>