zoukankan      html  css  js  c++  java
  • ArcEngine中画点画线画面

    画点

    IPoint pt; pt = axMapControl1.ToMapPoint(e.x, e.y); IMarkerElement pMarkerElement; pMarkerElement = new MarkerElementClass(); IElement pElement; pElement = pMarkerElement as IElement; pElement.Geometry = pt; pGraphicsContainer = pMap as IGraphicsContainer; pGraphicsContainer.AddElement((IElement)pMarkerElement, 0); pActiveView.Refresh();
    画线
    IGeometry polyline; polyline = axMapControl1.TrackLine(); ILineElement pLineElement; pLineElement = new LineElementClass(); IElement pElement; pElement = pLineElement as IElement; pElement.Geometry = polyline; pGraphicsContainer = pMap as IGraphicsContainer; pGraphicsContainer.AddElement((IElement)pLineElement, 0); pActiveView.Refresh();
    画面
    IGeometry Polygon; Polygon = axMapControl1.TrackPolygon(); IPolygonElement PolygonElement; PolygonElement = new PolygonElementClass(); IElement pElement; pElement = PolygonElement as IElement; pElement.Geometry = Polygon; pGraphicsContainer = pMap as IGraphicsContainer; pGraphicsContainer.AddElement((IElement)PolygonElement, 0); pActiveView.Refresh();

  • 相关阅读:
    office 2007
    关于网站爬虫的爬取
    华为交换机默认密码大合集
    一些不错的网站工具箱
    HDU 2023 求平均成绩
    HDU 2056 Rectangles
    HDU 2022 海选女主角
    HDU 2045 不容易系列之(3)—— LELE的RPG难题
    HDU 2042 不容易系列之二
    HDU 2044 一只小蜜蜂...
  • 原文地址:https://www.cnblogs.com/cuiguanghe/p/2952500.html
Copyright © 2011-2022 走看看