Firebird News

Wednesday, June 18, 2008

transparent png watermark example

and article 


Replace 

imagecopymerge($this->pictureFile, $this->stampFile, $this->stampXpos, $this->stampYpos, 0, 0, $this->stampInfo[0], $this->stampInfo[1], 100);
with
imagecopy($this->pictureFile, $this->stampFile, $this->stampXpos, $this->stampYpos, 0, 0, $this->stampInfo[0], $this->stampInfo[1]);


in  stampPicture() function allows to use PNG-24 watermarks with advanced transparency.

No comments: