/// <summary>
/// 将显示坐标中的一个点转换为地图或图层坐标中的点。
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void mapControl1_MouseMove(object sender, MouseEventArgs e)
{
System.Drawing.PointF displayPoint = new PointF(e.X, e.Y);
MapInfo.Geometry.DPoint mapPoint = new MapInfo.Geometry.DPoint();
MapInfo.Geometry.DisplayTransform converter = this.mapControl1.Map.DisplayTransform;
converter.FromDisplay(displayPoint, out mapPoint);
this.textBox1.Text = "Cursor Location: " + mapPoint.x.ToString() + ", " + mapPoint.y.ToString();
}
分享到:
相关推荐
2.如何在MapXtreme2004桌面应用程序中的状态栏上显示出鼠标的坐标 3.在MapXTreme2004中创建自定义工具 4.在Web应用中使用InfoTip 5.为自定义工具创建控件 6.MapXtreme2004打包成功的经验 等等.
最新中文版MapXtreme2005开发指南
mapxtreme2005 DevelopmentReference mapxtreme2005 开发帮助手册中文版
mapxtreme2005中文开发手册1
mapxtreme2005说明书
在使用 MapXtreme 2005 设计分布式应用程序时必须考虑许多因素。有些因素是 MapXtreme 设计决定,其它因素是 Microsoft 技术设计模式。本章将让您了解一些必须做出的决定,并 展示如何做出符合应用程序类型的正确...
mapxtreme 2004 官方开发手册
MapXtreme2005_DevGuide中文版
MapXtreme6.8中文 完美 破解版
MapXtreme 2005 Web 应用程序规划及最佳实践 InProc Application 开发模式 Pooled Application 开发模式 Pooled Session 和 State COM+ Object Pooling Application 性能 IIS Server 设置 Application 示例
MapXtreme 2005 技术手册,详细介绍MapXtreme 特点、桌面开发、web应用开发的说明和例子
MapXtreme2004应用问答.txtMapXtreme2004应用问答.txtMapXtreme2004应用问答.txt
MapXtreme 2005 6.7.1破解文件,复制到*Common Files\MapInfo\MapXtreme\6.7.1文件夹下
mapxtreme 桌面应用的完整示例,共25个小例子,官方发布系列,方便学习,使用
.net2008 c# mapxtreme 加载地图,传进2个点在图层上画线
仅供个人学习使用,一切法律后果本人概不负责!
mapxtreme2005中文开发手册.part2
mapxtreme2005中文开发手册.part3
MapXtreme2004开发手册
MapXtreme2008中文教程详细介绍了MapXtreme2008的各方面特性,并结合例子介绍了MapXtreme的使用方法,附注了MapXtreme的各项新特性和指标。