note 110224 added to function.imagearc

From: Date: Tue, 02 Oct 2012 17:08:35 +0000
Subject: note 110224 added to function.imagearc
Groups: php.notes 
Request: Send a blank email to php-notes+get-191101@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.imagearc.php Edit -- https://master.php.net/note/edit/110224 Del: integrated -- https://master.php.net/note/delete/110224/integrated Del: useless -- https://master.php.net/note/delete/110224/useless Del: bad code -- https://master.php.net/note/delete/110224/bad+code Del: spam -- https://master.php.net/note/delete/110224/spam Del: non-english -- https://master.php.net/note/delete/110224/non-english Del: in docs -- https://master.php.net/note/delete/110224/in+docs Del: other reasons-- https://master.php.net/note/delete/110224 Reject -- https://master.php.net/note/reject/110224 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191101) next »