Posted By

christianjunk on 02/06/11


Tagged

ArcObjects


Versions (?)

How to create a circle with ArcEngine?


 / Published in: C#
 

URL: http://gis.stackexchange.com/questions/5228/how-to-create-a-circle-with-arcengine

  1. EllipticArcClass ellipticalArc = new EllipticArcClass();
  2.  
  3. IEnvelope env = new EnvelopeClass();
  4.  
  5. IPoint lowerLeft = new PointClass();
  6.  
  7. lowerLeft.X = centerPoint.X - width;
  8.  
  9. lowerLeft.Y = centerPoint.Y - height;
  10.  
  11. IPoint upperRight = new PointClass();
  12.  
  13. upperRight.X = centerPoint.X + width;
  14.  
  15. upperRight.Y = centerPoint.Y + height;
  16.  
  17. env.LowerLeft = lowerLeft;
  18.  
  19. env.UpperRight = upperRight;
  20.  
  21. ellipticalArc.ConstructEnvelope(env);
  22.  
  23. IGraphicTrackerSymbol graphicTrackerSymbol = this.graphicTracker.CreateSymbol(simpleFillSymbol, null);
  24.  
  25. int shapeId = this.graphicTracker.Add(ellipticalArc, graphicTrackerSymbol);

Report this snippet  

You need to login to post a comment.