note 20333 added to function.imagefilledrectangle
| From: | ivank at 2xtreme dot net | Date: | Sat, 30 Mar 2002 21:34:48 +0000 |
| Subject: | note 20333 added to function.imagefilledrectangle | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28415@lists.php.net to get a copy of this message | ||
As stated above, it needs to go from the top left corner to the bottom right corner. Just use this
to flip it if neccessary:
// flip them if neccessary (x3, y3 are temp vars)
if($x1 > $x2) { $x3 = $x2; $x2 = $x1; $x1 = $x3; }
if($y1 > $y2) { $y3 = $y2; $y2 = $y1; $y1 = $y3; }
ImageFilledRectangle($im, $x1, $y1, $x2, $y2, $color);
--
http://www.php.net/manual/en/function.imagefilledrectangle.php
http://master.php.net/manage/user-notes.php?action=edit+20333
http://master.php.net/manage/user-notes.php?action=delete+20333
http://master.php.net/manage/user-notes.php?action=reject+20333