note 22953 added to function.imagecolorat

From: Date: Fri, 05 Jul 2002 04:36:49 +0000
Subject: note 22953 added to function.imagecolorat
Groups: php.notes 
Request: Send a blank email to php-notes+get-32620@lists.php.net to get a copy of this message
If you have a truecolor image and absolutely need to get the actual color of a pixel, it seems like you could create a 16x16 indexed color image from a part of the True Color image containing the pixel(s) in question. Then you should be able to guarantee that the indexed sample has the indentical colors to the True Color image. you can then use this function to get the color index of a pixel in the sample. Obviously, this would be an intensive way to get pixel colors, especially for a large image, but as far as I can tell, it's one of the very few ways to do it right now. -- http://www.php.net/manual/en/function.imagecolorat.php http://master.php.net/manage/user-notes.php?action=edit+22953 http://master.php.net/manage/user-notes.php?action=delete+22953 http://master.php.net/manage/user-notes.php?action=reject+22953

« previous php.notes (#32620) next »