note 87496 deleted from function.imageline by cmb

From: Date: Fri, 15 Jul 2016 16:22:18 +0000
Subject: note 87496 deleted from function.imageline by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-206026@lists.php.net to get a copy of this message
Note Submitter: keksnicoh ---- 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); } ?>

« previous php.notes (#206026) next »