note 73686 added to function.imagefill

From: Date: Tue, 06 Mar 2007 18:14:53 +0000
Subject: note 73686 added to function.imagefill
Groups: php.notes 
Request: Send a blank email to php-notes+get-124170@lists.php.net to get a copy of this message
If you need to fill a whole image (immediatly after its creation for instance), consider applying a filled rectangle instead, using imagefilledrectangle() : <?php $gdImage = imagecreatetruecolor(100, 100); $gdColor = imagecolorallocate($gdImage, 255, 0, 0); // red imagefilledrectangle($gdImage, 0, 0, 99, 99, $gdColor); ?> which will require much less logic and processing from GD. ---- Server IP: 216.235.15.211 Probable Submitter: 216.239.73.7 ---- Manual Page -- http://www.php.net/manual/en/function.imagefill.php Edit -- https://master.php.net/note/edit/73686 Del: integrated -- https://master.php.net/note/delete/73686/integrated Del: useless -- https://master.php.net/note/delete/73686/useless Del: bad code -- https://master.php.net/note/delete/73686/bad+code Del: spam -- https://master.php.net/note/delete/73686/spam Del: non-english -- https://master.php.net/note/delete/73686/non-english Del: in docs -- https://master.php.net/note/delete/73686/in+docs Del: other reasons-- https://master.php.net/note/delete/73686 Reject -- https://master.php.net/note/reject/73686 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124170) next »