Ellipse with graphic overlay

81
1
09-14-2020 01:02 AM
CavronJeremy
New Contributor III

Hello.
I would like to create Ellipse from Graphic Overlay. I found a topic (https://developers.arcgis.com/net/latest/wpf/guide/add-graphics-and-text-to-graphics-overlays.htm) but you only talk about points and not circles or ellipses.

thanks

0 Kudos
1 Reply
CavronJeremy
New Contributor III

I find.

Make polygon :

var ellipseLoc = new MapPoint(x,y);
SimpleLineSymbol simpleLineSymbol = new SimpleLineSymbol(SimpleLineSymbolStyle.Solid, System.Drawing.Color.FromArgb(byteOutcolor[0], byteOutcolor[1], byteOutcolor[2]), ellipse.Size );
SimpleFillSymbol simpleFillSymbol = new SimpleFillSymbol(SimpleFillSymbolStyle.Solid, System.Drawing.Color.FromArgb(byteColor[0], byteColor[1], byteColor[2]), simpleLineSymbol); Polygon pol = DrawCircle(ellipseLoc, rCircle, 35);
var graphic = new Graphic(pol, simpleFillSymbol);
GraphicOverLayer.Graphics.Add(graphic);

0 Kudos