note 59219 added to function.imagerectangle

From: Date: Tue, 29 Nov 2005 21:21:52 +0000
Subject: note 59219 added to function.imagerectangle
Groups: php.notes 
Request: Send a blank email to php-notes+get-99321@lists.php.net to get a copy of this message
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 ?> ---- Manual Page -- http://www.php.net/manual/en/function.imagerectangle.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59219 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59219&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59219&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59219&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59219&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59219&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59219&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59219&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59219&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#99321) next »