note 59219 rejected from function.imagerectangle by jacques

From: Date: Wed, 30 Nov 2005 01:44:49 +0000
Subject: note 59219 rejected from function.imagerectangle by jacques
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-99335@lists.php.net to get a copy of this message
Note Submitter: demonhunter at gmx dot de ---- In reply to j dot gizmo at aon dot at: Your function cannot work, due to there is no function called "imagecolorcreatealpha" and an obvious lack of semicolons ;) Here is the propper version: <?php $col = imagecolorallocatealpha($img, $r, $g, $b, $transparency); //doesn't work, corners too dark imagerectangle($img, $x1, $y1, $x2, $y2, $col ); //proper drawing $col = imagecolorallocatealpha($img, $r, $g, $b, $transparency); imageline($img, $x1, $y1, $x2, $y1, $col ); //top imageline($img, $x1, $y2, $x2, $y2, $col ); //bottom imageline($img, $x1, $y1+1, $x1, $y2-1, $col ); //left imageline($img, $x2, $y1+1, $x2, $y2-1, $col ); //right ?>

« previous php.notes (#99335) next »