note 73770 added to function.imagefill

From: Date: Fri, 09 Mar 2007 15:54:31 +0000
Subject: note 73770 added to function.imagefill
Groups: php.notes 
Request: Send a blank email to php-notes+get-124269@lists.php.net to get a copy of this message
Example 1 The filled region will be external to a demarcated region, if the initial coordinates will be outside of this region. <?php $src621 = imagecreate(200,200); $clr_1_621 = imagecolorallocate($src621, 255, 255, 0); $clr_2_621 = imagecolorallocate($src621, 0, 0, 250); $clr_4_621 = imagecolorallocate($src621, 2,2,55); imagerectangle($src621, 100, 100, 150, 150, $clr_4_621); imagefill($src621, 110, 110, $clr_2_621); header("Content-Type: image/png"); imagepng ($src621); imagedestroy($src621); ?> Example 2 The filled region will be internal to a demarcated region, if the initial coordinates will be inside of this region. <?php $src622 = imagecreate(200,200); $clr_1_622 = imagecolorallocate($src622, 255, 255, 0); $clr_2_622 = imagecolorallocate($src622, 0, 0, 250); $clr_4_622 = imagecolorallocate($src622, 2,2,55); imagerectangle($src622, 100, 100, 150, 150, $clr_4_622); imagefill($src622, 10, 10, $clr_2_622); header("Content-Type: image/png"); imagepng ($src622); imagedestroy($src622); ?> See another examples at: http://www.educar.pro.br/a/gdlib/index.php?pn=50&tr=97 ---- Server IP: 200.185.126.110 Probable Submitter: 200.207.118.199 (proxied: 200.207.118.199) ---- Manual Page -- http://www.php.net/manual/en/function.imagefill.php Edit -- https://master.php.net/note/edit/73770 Del: integrated -- https://master.php.net/note/delete/73770/integrated Del: useless -- https://master.php.net/note/delete/73770/useless Del: bad code -- https://master.php.net/note/delete/73770/bad+code Del: spam -- https://master.php.net/note/delete/73770/spam Del: non-english -- https://master.php.net/note/delete/73770/non-english Del: in docs -- https://master.php.net/note/delete/73770/in+docs Del: other reasons-- https://master.php.net/note/delete/73770 Reject -- https://master.php.net/note/reject/73770 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124269) next »