note 99016 deleted from function.imagealphablending by danbrown

From: Date: Thu, 22 Jul 2010 14:42:15 +0000
Subject: note 99016 deleted from function.imagealphablending by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171045@lists.php.net to get a copy of this message
Note Submitter: mario at k9soft dot com ---- roONLYycoLOWERCAneSEjo at gmail dot com's alpha_blending function is brilliant. however, in my opinion, the last line should say: imagesetpixel($dest, $x + $dest_x, $y + $dest_y, $rgb_d); instead of imagesetpixel($dest, $x, $y, $rgb_d); otherwhise, the overlay image always gets placed in the upper left corner, i.e. it correctly calculates the overlay section's pixel color values, but places the resulting section in the corner instead of the actual position within the target image.

« previous php.notes (#171045) next »