note 6849 modified in ImageColorsForIndex by ronabop

From: Date: Wed, 04 Oct 2000 14:53:26 +0000
Subject: note 6849 modified in ImageColorsForIndex by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-6034@lists.php.net to get a copy of this message
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 http://www.php.net/manual/function.imagecolorsforindex.php

« previous php.notes (#6034) next »