• ArcEngine中的鷹眼圖示例


    在from1上新建地圖控件axmapcontrol1 axmapcontrol2,工具條控件axtoolbar1以及按鈕button1
    以單擊按鈕事件觸發鷹眼圖刷新

    private void button1_Click(object sender, System.EventArgs e)
    {
    axMapControl2.Refresh();
    ISimpleFillSymbol sys = new SimpleFillSymbolClass();
    ILineSymbol lin = new SimpleLineSymbolClass();
    IColor color = new RgbColorClass();
    color.NullColor = true;
    sys.Color = color;
    color.NullColor = false;
    color.RGB = 255;
    lin.Color = color;
    lin.Width = 2;
    sys.Outline = lin;


    axMapControl2.ActiveView.ScreenDisplay.StartDrawing(axMapControl2.ActiveView.ScreenDisplay.hDC, (short)esriScreenCache.esriNoScreenCache);

    axMapControl2.ActiveView.ScreenDisplay.SetSymbol((ISymbol)sys);
    axMapControl2.ActiveView.ScreenDisplay.DrawPolygon((IGeometry)this.axMapControl1.Extent);

    axMapControl2.ActiveView.ScreenDisplay.FinishDrawing();

    axMapControl2.Update();


    }


    e-mail:shisong.zhu@gmail.com
    GISer in China, for engineering
  • 相关阅读:
    敲七
    二维指针数组**p
    食物链(待解决)
    蛇行矩阵
    快速排序 QuickSort
    堆排序
    猪的安家
    百度语言翻译机
    HTML <base> 标签
    免费网络管理流量监控软件大比拼
  • 原文地址:https://www.cnblogs.com/columbus2/p/840322.html
Copyright © 2020-2023  润新知