note 38339 added to function.imagearc

From: Date: Wed, 17 Dec 2003 12:24:35 +0000
Subject: note 38339 added to function.imagearc
Groups: php.notes 
Request: Send a blank email to php-notes+get-62111@lists.php.net to get a copy of this message
Right... possibly the easiest way of drawing a filled circle: Loop through the imagearc function incrementing the diameter by one pixel: <? // --- code fragment --- // for($i=1; $i<$Diameter; $i++){ imagearc($Image, $CenterX, $CenterY, $i, $i, $Start, $End, $Color); } // --------------------- // ?> This works great for circles with diameters up to about 60 or 70 pixels wide. After that, you start to get pixle gaps. ---- Manual Page -- http://www.php.net/manual/en/function.imagearc.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38339 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38339&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38339&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#62111) next »