note 50769 added to ref.image
| From: | robschifreen at osu1 dot php dot net | Date: | Wed, 09 Mar 2005 11:23:15 +0000 |
| Subject: | note 50769 added to ref.image | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-86153@lists.php.net to get a copy of this message | ||
A google search for "imagecolorgradient horizontal" will show you a modified version of
the code by "solanki" (above) which allows a choice between horizontal and vertical
gradient fill.
This works very well.
Also note that you need to change any occurrence of "imagecreate" to
"imagecreatetruecolor" if you will be filling an image that has more than 255 rows or
columns. Otherwise the function will not be able to create more than 255 colours and the results
will not look right.
----
Manual Page -- http://www.php.net/manual/en/ref.image.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50769
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50769&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50769&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50769&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50769&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50769&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50769&report=yes
Search -- http://master.php.net/manage/user-notes.php