note 58810 added to function.imagecolorexact

From: Date: Wed, 16 Nov 2005 19:14:24 +0000
Subject: note 58810 added to function.imagecolorexact
Groups: php.notes 
Request: Send a blank email to php-notes+get-98670@lists.php.net to get a copy of this message
<?php $src = "../images/pic.gif"; $red = 9; $green = 9; $blue = 4; $pic0026 = imagecreatefromgif ( $src ); $ind = imagecolorexact ( $pic, $red, $green, $blue ); echo '<img src="../images/pic.gif" border="0" alt="pic" title="View pic" /><br /><br />'; echo "RED ( " . $red . " ) GREEN ( " . $green . " ) BLUE ( " . $blue . " )<br />-> Palette Index = " . $ind; if ( $ind != -1 ) { echo "<br />[ The color exists! ]"; } else { echo "<br />[ The color does not exist! ]"; } imagedestroy ( $pic ); ?> ---- Manual Page -- http://www.php.net/manual/en/function.imagecolorexact.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58810 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58810&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58810&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58810&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58810&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58810&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58810&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58810&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58810&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98670) next »