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: 17 years ago
Size: 592 bytes


Class file image Download
* usage of this waterMark class
$imagePath = $_REQUEST['code'];
//echo $imagePath;
$imark = new waterMarker();
$imark->waterMarkText = "somewherein";
$imark->imagePath = $imagePath;
$imark->size = 12;
$imark->angle = 60;
header("Content-type: image/jpeg");
$imark->mark(); //draw watermark
//echo $imark->imageResource;
echo $imark->imageResource;

For more information send a message to info at phpclasses dot org.