note 62062 added to function.imageantialias

From: Date: Sat, 18 Feb 2006 18:18:27 +0000
Subject: note 62062 added to function.imageantialias
Groups: php.notes 
Request: Send a blank email to php-notes+get-103975@lists.php.net to get a copy of this message
The following function draws an AntiAliased (unfilled) Ellipse. It is used just liked the nomral ImageEllipse function. The optional parameter sets the number of segments... function ImageEllipseAA( &$img, $x, $y, $w, $h,$color,$segments=70) { $w=$w/2; $h=$h/2; $jump=2*M_PI/$segments; $oldx=$x+sin(-$jump)*$w; $oldy=$y+cos(-$jump)*$h; for($i=0;$i<2*(M_PI);$i+=$jump) { $newx=$x+sin($i)*$w; $newy=$y+cos($i)*$h; ImageLine($img,$newx,$newy,$oldx,$oldy,$color); $oldx=$newx; $oldy=$newy; } } ---- Server IP: 194.153.94.11 Probable Submitter: 62.65.141.46 ---- Manual Page -- http://www.php.net/manual/en/function.imageantialias.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+62062 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+62062&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+62062&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+62062&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+62062&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+62062&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+62062&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+62062&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+62062&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#103975) next »