note 99016 added to function.imagealphablending

From: Date: Thu, 22 Jul 2010 12:15:31 +0000
Subject: note 99016 added to function.imagealphablending
Groups: php.notes 
Request: Send a blank email to php-notes+get-171039@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 90.146.29.5 ---- Manual Page -- http://www.php.net/manual/en/function.imagealphablending.php Edit -- https://master.php.net/note/edit/99016 Del: integrated -- https://master.php.net/note/delete/99016/integrated Del: useless -- https://master.php.net/note/delete/99016/useless Del: bad code -- https://master.php.net/note/delete/99016/bad+code Del: spam -- https://master.php.net/note/delete/99016/spam Del: non-english -- https://master.php.net/note/delete/99016/non-english Del: in docs -- https://master.php.net/note/delete/99016/in+docs Del: other reasons-- https://master.php.net/note/delete/99016 Reject -- https://master.php.net/note/reject/99016 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171039) next »