note 81349 added to function.imagelayereffect

From: Date: Sat, 23 Feb 2008 19:45:36 +0000
Subject: note 81349 added to function.imagelayereffect
Groups: php.notes 
Request: Send a blank email to php-notes+get-136444@lists.php.net to get a copy of this message
^^ my name is coreyward ^^ imagelayereffect needs to be applied to the destination image, not the source image. As noted, the only useful "effect" as of this time is IMG_EFFECT_OVERLAY since the others are merely another way of setting the alpha blending flag. You can also use imagecopymerge with a lower pct argument to blend two images with more control over the opacity at which the top image is blended. <? // overlays $im_src onto $im_dst properly (assuming same dims) imagelayereffect($im_dst, IMG_EFFECT_OVERLAY); imagecopy($im_dst, $im_src, 0, 0, 0, 0, $im_dst_x, $im_dst_y); ?> ---- Server IP: 209.41.74.194 Probable Submitter: 76.189.53.14 ---- Manual Page -- http://www.php.net/manual/en/function.imagelayereffect.php Edit -- https://master.php.net/note/edit/81349 Del: integrated -- https://master.php.net/note/delete/81349/integrated Del: useless -- https://master.php.net/note/delete/81349/useless Del: bad code -- https://master.php.net/note/delete/81349/bad+code Del: spam -- https://master.php.net/note/delete/81349/spam Del: non-english -- https://master.php.net/note/delete/81349/non-english Del: in docs -- https://master.php.net/note/delete/81349/in+docs Del: other reasons-- https://master.php.net/note/delete/81349 Reject -- https://master.php.net/note/reject/81349 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136444) next »