From: [EMAIL PROTECTED] Operating system: Win2k PHP version: 4.3.0 PHP Bug Type: Documentation problem Bug description: First call to imagecolorallocate() assigns background
I discovered from experimentation that the first call to imagecolorallocate() for a given image, sets the background colour for that image. This would be worth noting in the manual page for imagecolorallocate(). Someone has pointed it out in a user comment, but it is a fairly important aspect of the function's behaviour, and IMO should be part of the official documentation. I'm using php_gd2 as bundled with PHP 4.3.0, and I've only tried PNG images so far. I can't say for sure if imagecolorallocate() exhibits this same behaviour for other image types. As an aside, the GD functionality is great. I'm loving the idea of creating dynamic images in my app. May the Force be with you. -- Edit bug report at http://bugs.php.net/?id=21834&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21834&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21834&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21834&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21834&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21834&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21834&r=support Expected behavior: http://bugs.php.net/fix.php?id=21834&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21834&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21834&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21834&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21834&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21834&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21834&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21834&r=gnused -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php