How to draw a circle (round) on the mapcontrol using C# ?

3539
2
Jump to solution
03-15-2013 05:09 PM
TaiBui
by
Occasional Contributor II
Hi,

Are there anyone know how to draw the below circle using C# ?

[ATTACH=CONFIG]22664[/ATTACH]

Thanks and regards,

Tai
0 Kudos
1 Solution

Accepted Solutions
nicogis
MVP Frequent Contributor
you have some options:

 ISegmentCollection segmentCollection = new PolygonClass(); segmentCollection.SetCircle(point, 10); IGeometry circle = segmentCollection as IGeometry; 


or you can cast the point to ITopologicalOperator  and use buffer

or you can rotate a vector from a center point

or use EllipticArcClass

and so on..

View solution in original post

0 Kudos
2 Replies
nicogis
MVP Frequent Contributor
you have some options:

 ISegmentCollection segmentCollection = new PolygonClass(); segmentCollection.SetCircle(point, 10); IGeometry circle = segmentCollection as IGeometry; 


or you can cast the point to ITopologicalOperator  and use buffer

or you can rotate a vector from a center point

or use EllipticArcClass

and so on..
0 Kudos
TaiBui
by
Occasional Contributor II
you have some options:


ISegmentCollection segmentCollection = new PolygonClass();
segmentCollection.SetCircle(point, 10);
IGeometry circle = segmentCollection as IGeometry;



or you can cast the point to ITopologicalOperator  and use buffer

or you can rotate a vector from a center point

or use EllipticArcClass

and so on..


Thank you very much. I can do now 😄
0 Kudos