- ISegmentCollection pSegmentCollection=new polylineClass();
- pSegmentCollection.setCircle(p,Ruadius);
- m_geomery=pSegmentCollection as IGeomery;
axMapcontrol.drawShape(m_geomery,oLineSymbol);//oLineSymbol线条样式 自己创建ILineSymbol即可。
顺便把画一个填充圆的代码贴出来,即面域
- ISegmentCollection iSG=new RingClass();
- iSG.setCircle(p,Randius);
- object o=Type.Missing;
- IRing pRing=iSG as IRing;
- pRing.close();
- //使用Ring对象构造Polygon对象
- IGeometryCollection pGeometeryColl=new PolygonClass();
- pGeometeryColl.AddGeometry(pRing,ref o,ref o);
- m_geomery=pGeometeryColl as IGeometery;
axMapcontrol.drawShape(m_geomery,oFillSymbol);//oFillSymbol填充样式 自己创建ILineSymbol即可。