note 113063 added to function.imagecreatetruecolor
| From: | jessiedeer at hotmail dot com | Date: | Sat, 24 Aug 2013 17:47:29 +0000 |
| Subject: | note 113063 added to function.imagecreatetruecolor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-196065@lists.php.net to get a copy of this message | ||
There is no need to allocate colors with imagecreatetruecolor. All [256 x 256 x 256 x 128] true
colors are already allocated, and you can use the color indexes directly.
Examples :
Blue => color index 255.
White => color index 16777215 (= 255*256² + 255*256+255).
Full transparent => color index 2130706432 (= 127*256^3).
----
Server IP: 69.147.83.199
Probable Submitter: 197.0.138.241
----
Manual Page -- http://php.net/manual/en/function.imagecreatetruecolor.php
Edit -- https://master.php.net/note/edit/113063
Del: integrated -- https://master.php.net/note/delete/113063/integrated
Del: useless -- https://master.php.net/note/delete/113063/useless
Del: bad code -- https://master.php.net/note/delete/113063/bad+code
Del: spam -- https://master.php.net/note/delete/113063/spam
Del: non-english -- https://master.php.net/note/delete/113063/non-english
Del: in docs -- https://master.php.net/note/delete/113063/in+docs
Del: other reasons-- https://master.php.net/note/delete/113063
Reject -- https://master.php.net/note/reject/113063
Search -- https://master.php.net/manage/user-notes.php