note 87496 added to function.imageline

From: Date: Sun, 07 Dec 2008 20:12:01 +0000
Subject: note 87496 added to function.imageline
Groups: php.notes 
Request: Send a blank email to php-notes+get-147885@lists.php.net to get a copy of this message
Little function I made to draw faaaaat lines... <?php /** * imageBoldLine function * this function allows you to draw faaaat lines. * * To keep the function a bit more flexible, it's possible to change the function which draw the lines * @param resource $resource * @param int $x1 * @param int $y1 * @param int $x2 * @param int $y2 * @param int $Color * @param int $BoldNess (1 = thin, 2=bold, 1000 = extreme fat) * @param string $func Functionname. Notice that the function must got the same signature. * @return void * @author Nicolas 'keksnicoh' Heimann <www.salamipla.net> * @date nov08 * <code><?php * imageBoldLine($res, 0, 0, 100, 100, $col, 5); * ?></code> */ function imageBoldLine($resource, $x1, $y1, $x2, $y2, $Color, $BoldNess=2, $func='imageLine') { $x1 -= ($buf=ceil(($BoldNess-1) /2)); $x2 -= $buf; for($i=0;$i < $BoldNess;++$i) $func($resource, $x1 +$i, $y1, $x2 +$i, $y2, $Color); } ?> ---- Server IP: 217.160.72.57 Probable Submitter: 80.171.126.91 ---- Manual Page -- http://www.php.net/manual/en/function.imageline.php Edit -- https://master.php.net/note/edit/87496 Del: integrated -- https://master.php.net/note/delete/87496/integrated Del: useless -- https://master.php.net/note/delete/87496/useless Del: bad code -- https://master.php.net/note/delete/87496/bad+code Del: spam -- https://master.php.net/note/delete/87496/spam Del: non-english -- https://master.php.net/note/delete/87496/non-english Del: in docs -- https://master.php.net/note/delete/87496/in+docs Del: other reasons-- https://master.php.net/note/delete/87496 Reject -- https://master.php.net/note/reject/87496 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#147885) next »