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();

  • 相关阅读:
    未解
    HDU 4642 Fliping game 解题报告
    HDU 4639 Hehe 解题报告
    深入浅出Node.js (11)
    JS文本框获取焦点
    深入理解 BFC
    JS 中函数名后面加与不加括号的区别
    ES6 箭头函数
    sublime 格式化代码
    <!--more-->搭建的博客设置主页内容高度
  • 原文地址:https://www.cnblogs.com/cuiguanghe/p/2952500.html
Copyright © 2011-2022 走看看