PHP Classes

File: btn-lite.php

Recommend this page to a friend!
  Classes of ben   Button Maker Lite   btn-lite.php   Download  
File: btn-lite.php
Role: Example script
Content type: text/plain
Description: example of use output
Class: Button Maker Lite
Generate button images with text dynamically
Author: By
Last change:
Date: 17 years ago
Size: 738 bytes
 

Contents

Class file image Download
<?
require_once ('class.buttonmaker.lite.php'); //the needed classfile

$btn = new BMaker(); //initiate the class
$btn->format($_POST['']); //imagetype : jpg,gif or png
$btn->text($_POST['but_text']); //text to put on button
$btn->font($_POST['but_font']); //defaults to arial.ttf
$btn->fontsize($_POST['but_fsize']); //defaults to 10px
$btn->textx($_POST['but_textx']); //nr of pixels from the left
$btn->texty($_POST['but_texty']); // nr of pixels from the top
$btn->bordertype($_POST['but_border']); //in out flat
$btn->bgcolor($_POST['but_bgcolor']); //background color in HEX
$btn->fgcolor($_POST['but_fgcolor']); //fontcolor in HEX
$btn->Buttonmaker($_POST['but_width'], $_POST['but_height']);//width height
?>