Login   Register  
PHP Classes
elePHPant
Icontem

File: usage.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Hasin Hayder  >  Image Watermarker  >  usage.php  >  Download  
File: usage.php
Role: Example script
Content type: text/plain
Description: Demostrate how to use
Class: Image Watermarker
Generate images with an watermark text
Author: By
Last change:
Date: 2005-05-09 21:24
Size: 592 bytes
 

Contents

Class file image Download
<?php
include_once("imageMarker.php");
/*******************************************
* usage of this waterMark class
*******************************************/
$imagePath $_REQUEST['code'];
//echo $imagePath;
$imark = new waterMarker();
$imark->waterMarkText "somewherein";
$imark->imagePath $imagePath;
$imark->font="arial.ttf";
$imark->size 12;
$imark->hSpacing=110;
$imark->vSpacing=110;
$imark->shadow=true;
$imark->angle 60;
header("Content-type: image/jpeg");
$imark->mark(); //draw watermark
//echo $imark->imageResource;
echo $imark->imageResource;
?>