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 Mark Berube  >  Overlay Text  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example usage
Class: Overlay Text
Render an image with a text over a background
Author: By
Last change:
Date: 5 years ago
Size: 430 bytes
 

Contents

Class file image Download
<?php
//error_reporting(E_ALL);
//ini_set('display_errors', 'On');
include('class.overlay.php');

extract($_POST);
$int_font_size intval($int_font_size);
$hex_font_color trim($hex_font_color);

$img_in_path './img_in.jpg';
$img_out_path './img_out.jpg';

$test = new overlay_text($txt_string$hex_font_color$int_font_size$align$img_in_path$img_out_path);

echo 
"<img src='".$img_out_path."'>";
?>