Re: Circle

From: Date: Sun, 02 Jul 2000 13:58:38 +0000
Subject: Re: Circle
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-4356@lists.php.net to get a copy of this message
Durrani writes: > I want to draw a circle using ImagePolygon($im,$points,$num_points,$red); > function. > > How to do this... > > Thanx for ur help > > Durrani. Durrani, That's the hard way to draw a circle. You would have to populate the array $points with a large number of vertices, with $points[0]=x0, $points[1]=y0, etc. Note that $um_points is the number of pairs of vertices. Much easier, if you simply need a circle, is to use: ImageArc($im, $arc_x, $arc_y, $arc_width, $arc_height, $arc_start, $arc_end, $arc_color); Billy

« previous php.general (#4356) next »