Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

make Water mark Effect in php

Sun Oct 26, 2008 11:08 pm

Code:
<?php
$myImage
= imagecreatefromgif('largeJava2sLogo.GIF');
$myCopyright = imagecreatefrompng('logo.png');


$destWidth = imagesx($myImage);
$destHeight = imagesy($myImage);
$srcWidth = imagesx($myCopyright);
$srcHeight = imagesy($myCopyright);

$destX = ($destWidth - $srcWidth) / 2;
$destY = ($destHeight - $srcHeight) / 2;
$white = imagecolorexact($myCopyright, 255, 255, 255);
imagecolortransparent($myCopyright, $white);

imagecopymerge($myImage, $myCopyright, $destX, $destY, 0, 0, $srcWidth, $srcHeight, 50);


header("Content-type: image/jpeg");
imagejpeg($myImage);
imagedestroy($myImage);
imagedestroy($myCopyright);
?>




Post a reply
  Related Posts  to : make Water mark Effect in php
 Mark Forums Read     -  
 Water TextMark in Ajax     -  
 Mark-up Language Differences     -  
 Water Drops in photoshop     -  
 photoshop Glass Effect     -  
 photoshop Glass Effect     -  
 Stroke with Effect in java     -  
 Lightning Text Effect     -  
 Text Effect Using Photoshop     -  
 Text Effect Using Add Layer Style     -  

Topic Tags

PHP Graphics