473,386 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Startangle and sweepangle

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

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
in**@reach-tech.com
su***@reach-tech.com

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.

Nov 17 '05 #1
1 4319
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.

"Sunil Batra" <su***@reach-tech.com> wrote in message
news:uI**************@TK2MSFTNGP10.phx.gbl...
I was just wondering what is a start angle and sweepangle in a
graphic.drawarc(pen,rectangle,startangle,sweepangl e)

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
in**@reach-tech.com
su***@reach-tech.com

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.

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Macroman | last post by:
Unable to locate a VML newsgroup (Vector Markup Language) so I hope I can find the answer here. I have what I beleive to be a strange bug which I cannot resolve. I have created a method of...
2
by: Ned | last post by:
I'm having difficulty printing on a 4"x3" labels . I set the left margin to 0 but it always prints starting from the middle of the label on the X-axis (no matter what the margin settings are.) I...
8
by: Hugh Janus | last post by:
I am trying to draw a compass on a form but my maths is not up to scratch! I have the disc with the bearing markers but have no idea how to calculate the needle line based on the desired degree. ...
2
by: CptDondo | last post by:
Can anyone tell me what 'degrees' this method uses? The docs say void SWFShape::drawArc(float $r, float $startAngle, float $endAngle) I am trying to draw an arc at a radius of 1100, and 0.0...
5
by: Andrew Poulos | last post by:
Is there a right/best way to draw an ellipse using Canvas? (With VML there's the v:oval element which makes the exercise trivial). I tried drawing a 360 degree arc (a circle) and then scaling it...
4
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i learned how to make simple pie charts using code like the following from an article referenced at the end of post: For i = 0 To yaxis.Length - 1 currentangle = yaxis(i) / totalAng...
9
by: yogeshtiwarijbp | last post by:
Is there any chart control through which we can display it in a webpage in asp.net.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.