note 108514 deleted from function.imagesetthickness by danbrown

From: Date: Thu, 10 May 2012 16:51:09 +0000
Subject: note 108514 deleted from function.imagesetthickness by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187602@lists.php.net to get a copy of this message
Note Submitter: david dot bruchmann at gmail dot com ---- Instead of the calculation of "raffi dot semerciyan at gmail dot com" you can simply use two arcs with 180°, so the drawing should be faster which may be important when you've many calculations: // We don't use imageellipse because the imagesetthickness function has // no effect. So the better workaround is to use imagearc. imagearc($image, $ellipseX, $ellipseY, $ellipseWidth, $ellipseHeight, 0, 180, $color); imagearc($image, $ellipseX, $ellipseY, $ellipseWidth, $ellipseHeight, 180, 360, $color); imagefill works for the inner area of this ellipse without flooding the outer area.

« previous php.notes (#187602) next »