File: example.php

Recommend this page to a friend!
  Classes of Richard Sumilang  >  Text on Image  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: Text on Image
Simply lets you write text anywhere on an image.
Author: By
Last change:
Date: 18 years ago
Size: 457 bytes
 

Contents

Class file image Download
<?
   
/*
        Pull in all the requirements
    */
   
require_once("class.img_add_txt.php");

   
   
/*
        coupon image
    */
   
$config=array(
               
"text" => "Test",
               
"text_colors" => "0 0 0", // RGB Seperated by spaces
               
"image_loc" => "coupon.jpg",
               
"image_type" => "JPEG", // PNG and GIF Supported
                // Optional arguments; default is center area on image
               
"x_pos" => "",
               
"y_pos" => "",
               
    );
   
   
$graphic=new img_add_txt($config);
?>


For more information send a message to info at phpclasses dot org.