note 38553 added to function.imagecreatetruecolor
| From: | fixxxeratphp5dotru at rn2 dot php dot net | Date: | Fri, 26 Dec 2003 22:47:20 +0000 |
| Subject: | note 38553 added to function.imagecreatetruecolor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-62526@lists.php.net to get a copy of this message | ||
A note to post by Justin Greer @ 18-Nov-2003 10:40:
While this information has already been posted by php at REMOVEreallynicejerk dot com @ 16-Sep-2002
12:01, I feel it neccesary to notice 'cause Justin's post is in the top and it can make
people go the wrong way: Justin's way of detecting which imagecreate function to use is too
complicated, while there's an easy standard way:
<?php
if (function_exists('imagecreatetruecolor') {
// use imagecreatetruecolor
} else {
// use imagecreate
}
----
Manual Page -- http://www.php.net/manual/en/function.imagecreatetruecolor.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38553
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38553&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38553&report=yes
Search -- http://master.php.net/manage/user-notes.php