PHP Classes

File: usage.php

Recommend this page to a friend!
  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: 18 years ago
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;
?>