PHP Classes

File: example_from_directory.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Arturs Sosins  >  Image Font  >  example_from_directory.php  >  Download  
File: example_from_directory.php
Role: Example script
Content type: text/plain
Description: Example loading images from directory
Class: Image Font
Render images with text using graphics as fonts
Author: By
Last change:
Date: 3 years ago
Size: 1,000 bytes


Class file image Download
 * This script is developed by Arturs Sosins aka ar2rsawseen,
 * Feel free to distribute and modify code, but keep reference to its creator
 * Image Font class can generate text taking images of symbols as font.
 * You can provide path to directory with images, using symbols as file names,
 * or you can provide and array with symbols as keys and paths to images as values.
 * It is also possible to set a maximal width restriction and alignment of text.
 * For more information, examples and online documentation visit:

//create class instance provided path to images
$imf = new image_font("./digits/");

//provide text

//output image to browser