Re: Given a point[] for a ploygon draw it with rounded corners
- From: "James Westgate" <jameswestgate@xxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 17:17:56 +0100
Loop through each point in a set of straight lines
For each each point, then work out the radius distance from the point to the
previuus point and next point, using a bit of trig (look into Math.Atan)
Draw
1. A line from the previous arc (or start point) to the radius - point.
2. An arc from the radius - to the radius + point
The graphicspath class would work best here
James
--
Create interactive diagrams and flowcharts with ERM Diagram at
http://www.crainiate.net
Take the ERM Tour at http://www.flowchartcontrol.com
"Shiv Kumar" <shivkatterolsdottcomm> wrote in message
news:OBk%23jL4kFHA.2916@xxxxxxxxxxxxxxxxxxxxxxx
>I need to be able to draw a polygon with rounded corners. That is given
>(say) an array of points that form the polygon, I'd like to draw it such
>that the corners are rounded (the radius needs to be configurable).
>
> How would I go about doing this?
> --
> Shiv Kumar (THF Team)
> http://www.dynamicarchitects.com
>
.
- References:
- Given a point[] for a ploygon draw it with rounded corners
- From: Shiv Kumar
- Given a point[] for a ploygon draw it with rounded corners
- Prev by Date: Re: Writing Text on an Image.
- Next by Date: Re: Writing Text on an Image.
- Previous by thread: Given a point[] for a ploygon draw it with rounded corners
- Index(es):
Relevant Pages
|