C#与ArcGIS Engine生产面状图形
2013-08-21 20:14
225 查看
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Controls;
using ESRI.ArcGIS.Display;
using ESRI.ArcGIS.Geometry;
namespace 选择元素
{
public
partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//定义颜色方法
private IRgbColor GetRGB(int r, int g, int b)
{
IRgbColor pRgbColor = new RgbColorClass(); //利用
IRgbColor 接口,分别设置R、G、B三个值参数
pRgbColor.Red = r;
pRgbColor.Green = g;
pRgbColor.Blue = b;
return pRgbColor; //
返回对象值
}
private void axMapControl1_OnMouseDown(object sender,
ESRI.ArcGIS.Controls.IMapControlEvents2_OnMouseDownEvent e)
{
IMap pMap;
IActiveView pActiveView;
pMap = axMapControl1.Map;
pActiveView = pMap as IActiveView;
ISegmentCollection pSegColl;
ILine pLine;
IRing pRing;
pSegColl = new RingClass();
pLine = new LineClass();
IPoint pPt1 = new PointClass();
pPt1.PutCoords(100, 100);
IPoint pPt2 = new PointClass();
pPt2.PutCoords(200, 100);
IPoint pPt3 = new PointClass();
pPt3.PutCoords(200, 300);
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Controls;
using ESRI.ArcGIS.Display;
using ESRI.ArcGIS.Geometry;
namespace 选择元素
{
public
partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//定义颜色方法
private IRgbColor GetRGB(int r, int g, int b)
{
IRgbColor pRgbColor = new RgbColorClass(); //利用
IRgbColor 接口,分别设置R、G、B三个值参数
pRgbColor.Red = r;
pRgbColor.Green = g;
pRgbColor.Blue = b;
return pRgbColor; //
返回对象值
}
private void axMapControl1_OnMouseDown(object sender,
ESRI.ArcGIS.Controls.IMapControlEvents2_OnMouseDownEvent e)
{
IMap pMap;
IActiveView pActiveView;
pMap = axMapControl1.Map;
pActiveView = pMap as IActiveView;
ISegmentCollection pSegColl;
ILine pLine;
IRing pRing;
pSegColl = new RingClass();
pLine = new LineClass();
IPoint pPt1 = new PointClass();
pPt1.PutCoords(100, 100);
IPoint pPt2 = new PointClass();
pPt2.PutCoords(200, 100);
IPoint pPt3 = new PointClass();
pPt3.PutCoords(200, 300);
相关文章推荐
- c#+arcgisengine 对属性表创…
- ArcGIS Engine开发的三维小程…
- ArcGIS Engine中正确释放打…
- VC、OpenGL、ArcGIS Engine开…
- C# 图形图像
- ArcGIS Engine 中线段的绘制方法
- ArcGIS Desktop A…
- ArcGIS version not specified. Yo…
- C# 多线程(二)
- 详细教程C#中的委托和事件应用 一
- C# 序列化和反序列化
- C# EXE程序运行后 怎样才能自动关…
- c# 人脸检测(典型方法)
- C# 连接 Mysql 中文乱码问题
- ArcGIS Engine + C# 实例开发教程: 属性数据表的查询显示
- C# Wifi源代码
- 基于ArcGIS10.0和Oracle10g的空间数据管理平台(C#开发)-ArcGIS_Engine中的数据访问
- c#+ArcGIS Engine-创建shp数据文件结构
- c 语言中的图形模式
- Java GUI (图形界面)