Round edges with imagefillpolygon

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Round edges with imagefillpolygon

Postby daradaniyal » Fri Jan 15, 2010 6:50 am

I need to create round edges of whatever shape i make with the imagefilledpolygon function. I know it will be an algorithm involving trigonometric function. So if anyone could help I'll appreciate it.

Daniyal
daradaniyal
Forum Newbie
 
Posts: 1
Joined: Fri Jan 15, 2010 6:39 am

Re: Round edges with imagefillpolygon

Postby Christopher » Fri Jan 15, 2010 8:05 pm

For round it would be the equation for a circle. If the corners where always the same then maybe just setting pixels in a know pattern would be easier.
(#10850)
User avatar
Christopher
Site Administrator
 
Posts: 12685
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US


Return to PHPGD.com

Who is online

Users browsing this forum: No registered users and 2 guests