PHP Classes

Example missing

Recommend this page to a friend!

      ncdcImage  >  All threads  >  Example missing  >  (Un) Subscribe thread alerts  
Subject:Example missing
Summary:Example missing
Messages:6
Author:Till Wehowski
Date:2011-06-04 12:56:19
Update:2011-06-05 14:44:16
 

  1. Example missing   Reply   Report abuse  
Picture of Till Wehowski Till Wehowski - 2011-06-04 12:56:19
Hello author,
your script looks fine, but do you have an example file?

mfg

  2. Transparney   Reply   Report abuse  
Picture of Till Wehowski Till Wehowski - 2011-06-04 13:52:09 - In reply to message 1 from Till Wehowski
I 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

  3. Re: Example missing   Reply   Report abuse  
Picture of Jean-Christophe Jean-Christophe - 2011-06-05 04:29:55 - In reply to message 2 from Till Wehowski
Agree, but would you please put it directly in the package ?
That would be nice.

  4. Re: Example missing   Reply   Report abuse  
Picture of necudeco necudeco - 2011-06-05 14:20:52 - In reply to message 1 from Till Wehowski
Hi Till,

my name is renato.

Thks 4 your time, i added a little example as comment at begin of class.

I hope this be enough.

Regards

  5. Re: Example missing   Reply   Report abuse  
Picture of necudeco necudeco - 2011-06-05 14:26:23 - In reply to message 2 from Till Wehowski
Thks Till,

Could i include your changes into my script ?

  6. Re: Example missing   Reply   Report abuse  
Picture of Till Wehowski Till Wehowski - 2011-06-05 14:44:16 - In reply to message 5 from necudeco
Hi necudeco,
no problem of course you can include it.
mfg