note 44099 added to function.imagecolorallocate
| From: | david at NOSPAMmaximumwebprofits dot co dot uk | Date: | Thu, 15 Jul 2004 07:27:08 +0000 |
| Subject: | note 44099 added to function.imagecolorallocate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-73260@lists.php.net to get a copy of this message | ||
In the code above placed by Leif on the 15th April 2003, there is an error on the following line:
ImageCopyMerge($im,$im2,0,0,0,0, $imageWidth, imageHeight, 100);
This error causes the routine to display a completely black image, not greyscale.
The line should read:
ImageCopyMerge($im,$im2,0,0,0,0, $imageWidth, $imageHeight, 100);
Note the addition of the $ sign before the imageHeight variable.
Now it works fine!
David.
----
Manual Page -- http://www.php.net/manual/en/function.imagecolorallocate.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44099
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44099&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44099&report=yes
Search -- http://master.php.net/manage/user-notes.php