图像编辑功能

摘要: //操作类型 string strOperator = ""; //当前地图视图 IActiveView m_activeView = null; //当前操作图层 IFeatureLayer m_featureLayer = null; //当前操作实体 IFeature m_feature = null; //当前线移动反馈对象 IMoveLineFeedback m_MoveLineFeedback = new MoveLineFeedbackClass(); //当前点移动反馈对象 IMovePointFeedback m_MovePointFeedback = n 阅读全文
posted @ 2012-03-19 14:41 种瓜得瓜 阅读(556) 评论(0) 推荐(0) 编辑

捕捉功能的实现完整版

摘要: bool bCreateElement = true; //时间间隔 int internalTime = 5; //初始值 int snapTime = 10; //界面绘制点元素 IElement m_element = null; //当前鼠标点 IPoint currentPoint = new PointClass(); //捕捉到得点 IPoint snapPoint = null; //移动点反馈对象 IMovePointFeedback movePointFeedback = new MovePointFeedbackClass(); //捕捉图层 string snapLa. 阅读全文
posted @ 2012-03-19 10:17 种瓜得瓜 阅读(578) 评论(0) 推荐(0) 编辑

IMapGrid/IIndexGrid/IMesureGrid使用方法及MapGridBorder的使用

摘要: //索引网格 private void button1_Click(object sender, EventArgs e) { IIndexGrid pIndexGrid = new IndexGridClass(); pIndexGrid.ColumnCount = 6; pIndexGrid.RowCount = 6; for (int i = 0; i < pIndexGrid.ColumnCount - 1;i++ ) { pIndexGrid.set_XLabel(i, (i + 1).ToString()); } for (int i=0;i <pIndexGrid.R 阅读全文
posted @ 2012-03-13 19:36 种瓜得瓜 阅读(613) 评论(0) 推荐(0) 编辑

IPictureElement的使用方法

摘要: string bmpPath = ""; private void axPageLayoutControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IPageLayoutControlEvents_OnMouseDownEvent e) { IPageLayout pPageLayout=axPageLayoutControl1.PageLayout; IGraphicsContainer pGraphicsContainer = pPageLayout as IGraphicsContainer; IActiveV 阅读全文
posted @ 2012-03-12 17:18 种瓜得瓜 阅读(1355) 评论(0) 推荐(0) 编辑