- 博客(7)
- 收藏
- 关注
转载 C# 复制内容到剪切板
Clipboard.Clear();//清空剪切板内容Clipboard.SetData(DataFormats.Text, "复制内容");//复制内容到剪切板转载于:https://www.cnblogs.com/JiNerd/p/3950685.html
2019-09-29 17:11:57 287
转载 C# GMap.Net 计算多边形面积
Cédric Bignon :Let's note Points the points of the polygon (where Points[0] == Points[Points.Count - 1] to close the polygon).The idea behind the next methods is to split the polygon into tr...
2019-09-29 17:11:55 552
转载 GMap.NET 学习(一)添加marker和polygon
GMap.NETis great and Powerful, Free, cross platform, open source .NET control. Enable userouting,geocoding,directionsandmapsfrom Coogle, Yahoo!, Bing, OpenStreetMap, ArcGIS, Pergo, SigPac,...
2019-09-29 17:11:54 1151
转载 C#如何获取鼠标相对当前窗口的坐标
可以用Control.MousePosition获得当前鼠标的坐标,使用PointToClient计算鼠标相对于某个控件的坐标,如下1 Point screenPoint = Control.MousePosition;//鼠标相对于屏幕左上角的坐标2 Point formPoint = this.PointToClient(Control.MousePosition);//...
2019-09-29 17:11:53 231
转载 asp.net(c#) 通过两个点的经纬度计算距离
原理:地球赤道上环绕地球一周走一圈共40075.04公里,而@一圈分成360°,而每1°(度)有60,每一度一秒在赤道上的长度计算如下: 40075.04km/360°=111.31955km 111.31955km/60=1.8553258km=1855.3m 而每一分又有60秒,每一秒就代表1855.3m/60=30.92m 任意两点距离计算公式为 ...
2019-09-29 17:11:52 322
转载 经纬度和墨卡托互相转换
1 //经纬度转墨卡托 2 public MapPoint lonLat2Mercator(MapPoint lonLat) 3 { 4 MapPoint mercator = new MapPoint(); 5 double x = lonLat.X * 20037508.34 / 1...
2019-09-29 17:11:52 219
转载 C#中怎么对double型取两位小数。
例: Double a = 2.1234567; Math.Round(a,2);转载于:https://www.cnblogs.com/JiNerd/p/3926563.html
2019-09-29 17:11:50 814
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人