Startangle and sweepangle

S

Sunil Batra

I was just wondering what is a start angle and sweepangle in a
graphic.drawarc(pen,rectangle,startangle,sweepangle)

I have got the coordinates of the rectangle but i want to get the start
angle and sweep .

I am drawing an arc using 3 points .

How do i calculate the startangle and sweepangle

--
Regards
Sunil Batra
REACH Technologies,
621, 5 th Main, OMBR Layout,
Bangalore-560 043.
Ph : 91 - 080-56996111 / 112 / 113
Fax : 91 - 080 25428397
(e-mail address removed)
(e-mail address removed)

www.reach-tech.com
transforming sewn products business through technology solutions

============================================
IMPORTANT

This communication (including any accompanying attachments) is intended only
for the use of the addressee(s) and contains information that is privileged
and confidential. Unauthorized reading, dissemination, distribution or
copying of this communication is prohibited. If you have received this
communication in error please destroy the original communication.
 
B

Bob Powell [MVP]

Consider a clock-face.

StartAngle 0 is at 3:00

SweepAngle is how many degrees you go around the clock in a clockwise
direction

0,90 draws a quarter circle in the lower-right quadrant between 3:00 and
6:00, 180,180 draws a half circle over the top between 9:00 and 3:00

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Top