
 Melanie Wehowski - 2011-06-04 13:52:09 - 
In reply to message 1 from Melanie WehowskiI added the possibillity to show the watermark transparent:
	function applyMark($i, $x, $y, $transparency = 40){
    	$marca = $i->createImage();
    	$img = $this->createImage();
		$w_marca = $i->getWidth();
		$h_marca = $i->getHeight();
		$x = ( $this->width - $w_marca );
		$y = ( $this->height - $h_marca );
		/*
		   imagecopy($img, $marca, $x, $y, 0, 0, $w_marca, $h_marca);
		   
		   EDITED by Webfan.de 
		   */
		   // get watermark width
           $watermark_width = $w_marca;
           $watermark_height = $h_marca;
    
		imagecopymerge($img, $marca, $x, $y, 0, 0, $watermark_width, $watermark_height, $transparency);
		$this->img = $img;
		return true;
	}
mfg 
Webfan