note 40957 added to function.imagefill

From: Date: Wed, 24 Mar 2004 18:01:29 +0000
Subject: note 40957 added to function.imagefill
Groups: php.notes 
Request: Send a blank email to php-notes+get-67114@lists.php.net to get a copy of this message
since it's not spoke of what int color is... here's what I finally figured out: it's a reference to a loaded color. /start code: $im = ImageCreateFromJPEG("us_map_regions.jpg"); $red = 225; $green = 0; $blue = 255; $color = ImageColorAllocate( $im, $red, $green, $blue ); $x = 100; $y = 100; imagefill($im, $x,$y, $color); header("Content-type: image/jpeg"); Imagejpeg($im,"",100); ImageDestroy($im); /end code and "bang" there you go.. a nicely lavender filled area. enjoy. ---- Manual Page -- http://www.php.net/manual/en/function.imagefill.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40957 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40957&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40957&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67114) next »