note 110192 added to function.imagefilledarc

From: Date: Fri, 28 Sep 2012 16:07:58 +0000
Subject: note 110192 added to function.imagefilledarc
Groups: php.notes 
Request: Send a blank email to php-notes+get-191064@lists.php.net to get a copy of this message
I didn't have much luck with the other two functions, one of them makes circles that look like they've been printed on a dot-matrix printer. This simple function builds a border out of circles, seems to work nicely. function imagearcunfilled($image,$x,$y,$width,$height,$border_thickness, $color) { imagesetthickness($image, 1); $x_radius = $width / 2; $y_radius = $height / 2; for ($i = 0; $i < 360; $i++) { if (TRUE) { $x2 = $x + cos($i) * $x_radius; $y2 = $y + sin($i) * $y_radius; imagefilledarc($image,$x2,$y2,$border_thickness,$border_thickness,0,360,$color,IMG_ARC_PIE); } } } ---- Server IP: 69.147.83.199 Probable Submitter: 193.62.218.79 ---- Manual Page -- http://www.php.net/manual/en/function.imagefilledarc.php Edit -- https://master.php.net/note/edit/110192 Del: integrated -- https://master.php.net/note/delete/110192/integrated Del: useless -- https://master.php.net/note/delete/110192/useless Del: bad code -- https://master.php.net/note/delete/110192/bad+code Del: spam -- https://master.php.net/note/delete/110192/spam Del: non-english -- https://master.php.net/note/delete/110192/non-english Del: in docs -- https://master.php.net/note/delete/110192/in+docs Del: other reasons-- https://master.php.net/note/delete/110192 Reject -- https://master.php.net/note/reject/110192 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191064) next »