note 25916 added to function.imagefilledellipse

From: Date: Thu, 10 Oct 2002 23:56:00 +0000
Subject: note 25916 added to function.imagefilledellipse
Groups: php.notes 
Request: Send a blank email to php-notes+get-37917@lists.php.net to get a copy of this message
I needed to draw translucent circles on an existing image, using imagealphablending($image,true);. Turns out that imagefilledellipse seems to do the ellipse by drawing a series of lines from the centroid out to the circumference. Problem with this is that pixels near the center very visibly get drawn multiple times, producing a kind of moire effect. Also, the 0-degree (center to right) line is drawn twice and so is twice as dark the pixel below it. My workaround was to draw the ellipse solid in a copy of the source image and do an imagecopymerge back into the original. -- http://www.php.net/manual/en/function.imagefilledellipse.php http://master.php.net/manage/user-notes.php?action=edit+25916 http://master.php.net/manage/user-notes.php?action=delete+25916 http://master.php.net/manage/user-notes.php?action=reject+25916

« previous php.notes (#37917) next »