AE+C#实现缩放坐标比例尺长度面积量测输出图片等功能
来源:互联网 发布:魔方软件官方下载 编辑:程序博客网 时间:2024/04/30 04:02
代码如下:
#region "工具条按钮"
//拉框放大
private void toolStripButton_Zoomin_Click(object sender, EventArgs e)
{
currentoperation = "拉框放大";
axMapControl1.MousePointer = esriControlsMousePointer.esriPointerZoomIn;
}
//拉框缩小
private void toolStripButton_Zoomout_Click(object sender, EventArgs e)
{
currentoperation = "拉框缩小";
axMapControl1.MousePointer = esriControlsMousePointer.esriPointerZoomOut;
}
//平移
private void toolStripButton_Pan_Click(object sender, EventArgs e)
{
currentoperation = "平移漫游";
axMapControl1.MousePointer = esriControlsMousePointer.esriPointerPan;
}
//全图
private void toolStripButton_FullExtent_Click(object sender, EventArgs e)
{
currentoperation = "全图显示";
axMapControl1.Extent = axMapControl1.FullExtent;
axMapControl1.MousePointer = esriControlsMousePointer.esriPointerDefault;
}
//上一视图
private void toolStripButton_LastExtent_Click(object sender, EventArgs e)
{
currentoperation = "上一视图";