note 6849 deleted from function.imagecolorsforindex by didou
| From: | didou@php.net | Date: | Fri, 15 Aug 2003 22:28:46 +0000 |
| Subject: | note 6849 deleted from function.imagecolorsforindex by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54274@lists.php.net to get a copy of this message | ||
Note Submitter: fuxun@sina.com
----
For example:
<?
$im = ImageCreateFromJpeg(./test.jpeg);
$start_x = 40; $start_y = 50;
$color_index = imagecolorat($im, $start_x, $start_y);
$color_tran = imagecolorsforindex($im, $color_index);
$color_set =
ImageColorAllocate($im,$color_tran["red"],$color_tran["green"],$color_tran["blue"]);
?\>
$color_tran is a RGB array of the point (40,50)
Note: $color_tran[0] 's value is NULL