3
Answers

About Draw An Arc

Mayur Ghatkar

Mayur Ghatkar

7y
247
1
Hi,
 
In my application I having three points. StartPoint, EndPoint and PivotPoint. So my concern is I want to draw an Arc between StartPoint and EndPoint considering PivotPoint is center of an Arc always.
 
   As I moving my PivotPoint my arc should change as assuming PivotPoint is at center of Arc.
 
   Thanks In Advanced. I much needed this. So please give me solution as early as possible. 
Answers (3)
0
Ankit Sharma

Ankit Sharma

NA 8.8k 141k 7y
Hi Mayur,
 
These links might be of some help
 
https://www.codeproject.com/Articles/1181872/WPF-Arc 
 
https://stackoverflow.com/questions/21957779/arc-segment-between-two-points-and-a-radius 
 
https://stackoverflow.com/questions/16667072/how-to-draw-arc-with-radius-and-start-and-stop-angle 
Accepted
1
Mohamed Abedallah

Mohamed Abedallah

NA 574 67 7y
In addition to the links that Ankit mentioned, you can try doing this using the Annotations feature from LEADTOOLS, which provides the ability to draw Curve annotation object using the AnnCurveObject class.
You can find more details about this object here:
https://www.leadtools.com/help/leadtools/v19m/dh/ac/anncurveobject.html

Note that you can customize object’s bending between control points using the Tension property. More details can be found here:
https://www.leadtools.com/help/leadtools/v19m/dh/ac/anncurveobject-tension.html
0
Mayur Ghatkar

Mayur Ghatkar

NA 49 1.8k 7y
Hello Guys,
 
Thanks for your valuable suggestion. But Ankit, actually I refer all this links but I coudn't get any clear idea regarding my perspective of Arc. I have to give radius to Arc.
 

public Point StartPointOfArc
{
get { return new Point(StartPointCanvasLeftPosition , StartPointCanvasTopPosition ); }
set
{
_StartPointOfArc = value;
}
}
public Point EndPointOfArc
{
get { return new Point(EndPointCanvasLeftPosition, EndPointCanvasTopPosition); }
set
{
_EndPointOfArc = value;
}
}
public Point PivotPointOfArc
{
get { return new Point(PivotPointCanvasLeftPosition, PivotPointCanvasTopPosition); }
set
{
_PivotPointOfArc = value;
}
}
 
These are my three points. And I have to use ArcSegment to draw arc between StartPointOf Arc and EndPointOfArc considering PivotPointOfArc as center.