代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
CSharp
】
map地图类
作者:
lelese7en
/ 发布于
2012/2/8
/
313
<div> <div class="container"> <div class="line number1 index0 alt2">"csharp keyword">using "csharp plain">System; </div> <div class="line number2 index1 alt1">"csharp keyword">using "csharp plain">System.Collections.Generic; </div> <div class="line number3 index2 alt2">"csharp keyword">using "csharp plain">System.Linq; </div> <div class="line number4 index3 alt1">"csharp keyword">using "csharp plain">System.Text; </div> <div class="line number5 index4 alt2">"csharp spaces"> </div> <div class="line number6 index5 alt1">"csharp keyword">namespace "csharp plain">WSGPSGateway.BLL </div> <div class="line number7 index6 alt2">"csharp plain">{ </div> <div class="line number8 index7 alt1">"csharp spaces"> "csharp keyword">public "csharp keyword">enum "csharp plain">MapStyle </div> <div class="line number9 index8 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number10 index9 alt1">"csharp spaces"> "csharp plain">Road, </div> <div class="line number11 index10 alt2">"csharp spaces"> "csharp plain">Aerial, </div> <div class="line number12 index11 alt1">"csharp spaces"> "csharp plain">Hybrid </div> <div class="line number13 index12 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number14 index13 alt1">"csharp spaces"> </div> <div class="line number15 index14 alt2">"csharp spaces"> "csharp keyword">public "csharp keyword">enum "csharp plain">MapLanguageVersion </div> <div class="line number16 index15 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number17 index16 alt2">"csharp spaces"> "csharp plain">Chinese, </div> <div class="line number18 index17 alt1">"csharp spaces"> "csharp plain">UnitedStates </div> <div class="line number19 index18 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number20 index19 alt1">"csharp spaces"> </div> <div class="line number21 index20 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number22 index21 alt1">"csharp spaces"> "csharp color1">/// A map displayed on the screen. </div> <div class="line number23 index22 alt2">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number24 index23 alt1">"csharp spaces"> "csharp keyword">public "csharp keyword">class "csharp plain">Map </div> <div class="line number25 index24 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number26 index25 alt1">"csharp spaces"> "csharp keyword">private "csharp keyword">int "csharp plain">width, height; </div> <div class="line number27 index26 alt2">"csharp spaces"> "csharp keyword">private "csharp keyword">int "csharp plain">zoomLevel; </div> <div class="line number28 index27 alt1">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number29 index28 alt2">"csharp spaces"> "csharp color1">/// The X-coordinate of the center of the map, in pixels, in world coordinates (at the current zoom level). </div> <div class="line number30 index29 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number31 index30 alt2">"csharp spaces"> "csharp keyword">private "csharp keyword">int "csharp plain">x; </div> <div class="line number32 index31 alt1">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number33 index32 alt2">"csharp spaces"> "csharp color1">/// The Y-coordinate of the center of the map, in pixels, in world coordinates (at the current zoom level). </div> <div class="line number34 index33 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number35 index34 alt2">"csharp spaces"> "csharp keyword">private "csharp keyword">int "csharp plain">y; </div> <div class="line number36 index35 alt1">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number37 index36 alt2">"csharp spaces"> "csharp color1">/// The latitude of the center of the map. </div> <div class="line number38 index37 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number39 index38 alt2">"csharp spaces"> "csharp keyword">private "csharp keyword">double "csharp plain">latitude; </div> <div class="line number40 index39 alt1">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number41 index40 alt2">"csharp spaces"> "csharp color1">/// The longitude of the center of the map. </div> <div class="line number42 index41 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number43 index42 alt2">"csharp spaces"> "csharp keyword">private "csharp keyword">double "csharp plain">longitude; </div> <div class="line number44 index43 alt1">"csharp spaces"> "csharp keyword">private "csharp plain">MapStyle mapStyle; </div> <div class="line number45 index44 alt2">"csharp spaces"> </div> <div class="line number46 index45 alt1">"csharp spaces"> "csharp keyword">private "csharp keyword">const "csharp keyword">int "csharp plain">earthRadius = 6378137; </div> <div class="line number47 index46 alt2">"csharp spaces"> "csharp keyword">private "csharp keyword">const "csharp keyword">int "csharp plain">buffer = 0"csharp comments">/*100*/"csharp plain">; </div> <div class="line number48 index47 alt1">"csharp spaces"> "csharp keyword">private "csharp keyword">const "csharp keyword">double "csharp plain">offsetMeters = 20971520; </div> <div class="line number49 index48 alt2">"csharp spaces"> "csharp keyword">private "csharp keyword">const "csharp keyword">double "csharp plain">baseMetersPerPixel = 163840; </div> <div class="line number50 index49 alt1">"csharp spaces"> </div> <div class="line number51 index50 alt2">"csharp spaces"> "csharp keyword">private "csharp keyword">const "csharp keyword">double "csharp plain">MinLatitude = -85.05112878; </div> <div class="line number52 index51 alt1">"csharp spaces"> "csharp keyword">private "csharp keyword">const "csharp keyword">double "csharp plain">MaxLatitude = 85.05112878; </div> <div class="line number53 index52 alt2">"csharp spaces"> "csharp keyword">private "csharp keyword">const "csharp keyword">double "csharp plain">MinLongitude = -180; </div> <div class="line number54 index53 alt1">"csharp spaces"> "csharp keyword">private "csharp keyword">const "csharp keyword">double "csharp plain">MaxLongitude = 180; </div> <div class="line number55 index54 alt2">"csharp spaces"> </div> <div class="line number56 index55 alt1">"csharp spaces"> "csharp keyword">public "csharp plain">Map() </div> <div class="line number57 index56 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number58 index57 alt1">"csharp spaces"> </div> <div class="line number59 index58 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number60 index59 alt1">"csharp spaces"> </div> <div class="line number61 index60 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number62 index61 alt1">"csharp spaces"> "csharp color1">/// Minimum allowed zoom level </div> <div class="line number63 index62 alt2">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number64 index63 alt1">"csharp spaces"> "csharp keyword">public "csharp keyword">int "csharp plain">MinimumZoom </div> <div class="line number65 index64 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number66 index65 alt1">"csharp spaces"> "csharp keyword">get "csharp plain">{ "csharp keyword">return "csharp plain">3; } </div> <div class="line number67 index66 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number68 index67 alt1">"csharp spaces"> </div> <div class="line number69 index68 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number70 index69 alt1">"csharp spaces"> "csharp color1">/// Maximum allowed zoom level </div> <div class="line number71 index70 alt2">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number72 index71 alt1">"csharp spaces"> "csharp keyword">public "csharp keyword">int "csharp plain">MaximumZoom </div> <div class="line number73 index72 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number74 index73 alt1">"csharp spaces"> "csharp keyword">get "csharp plain">{ "csharp keyword">return "csharp plain">19; } </div> <div class="line number75 index74 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number76 index75 alt1">"csharp spaces"> </div> <div class="line number77 index76 alt2">"csharp spaces"> </div> <div class="line number78 index77 alt1">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number79 index78 alt2">"csharp spaces"> "csharp color1">/// Gets or sets the latitude. </div> <div class="line number80 index79 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number81 index80 alt2">"csharp spaces"> "csharp color1">/// <value>The latitude.</value> </div> <div class="line number82 index81 alt1">"csharp spaces"> "csharp keyword">public "csharp keyword">double "csharp plain">Latitude </div> <div class="line number83 index82 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number84 index83 alt1">"csharp spaces"> "csharp keyword">get</div> <div class="line number85 index84 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number86 index85 alt1">"csharp spaces"> "csharp keyword">if "csharp plain">("csharp keyword">double"csharp plain">.IsNaN(latitude)) </div> <div class="line number87 index86 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number88 index87 alt1">"csharp spaces"> </div> <div class="line number89 index88 alt2">"csharp spaces"> "csharp comments">// We have panned, so we must recalculate the latitude. </div> <div class="line number90 index89 alt1">"csharp spaces"> "csharp plain">latitude = YToLatitudeAtZoom(Y, zoomLevel); </div> <div class="line number91 index90 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number92 index91 alt1">"csharp spaces"> "csharp keyword">return "csharp plain">latitude; </div> <div class="line number93 index92 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number94 index93 alt1">"csharp spaces"> "csharp keyword">set</div> <div class="line number95 index94 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number96 index95 alt1">"csharp spaces"> "csharp plain">latitude = value; </div> <div class="line number97 index96 alt2">"csharp spaces"> "csharp plain">y = LatitudeToYAtZoom(latitude, zoomLevel); </div> <div class="line number98 index97 alt1">"csharp spaces"> </div> <div class="line number99 index98 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number100 index99 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number101 index100 alt2">"csharp spaces"> </div> <div class="line number102 index101 alt1">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number103 index102 alt2">"csharp spaces"> "csharp color1">/// Gets or sets the longitude. </div> <div class="line number104 index103 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number105 index104 alt2">"csharp spaces"> "csharp color1">/// <value>The longitude.</value> </div> <div class="line number106 index105 alt1">"csharp spaces"> "csharp keyword">public "csharp keyword">double "csharp plain">Longitude </div> <div class="line number107 index106 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number108 index107 alt1">"csharp spaces"> "csharp keyword">get</div> <div class="line number109 index108 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number110 index109 alt1">"csharp spaces"> "csharp keyword">if "csharp plain">("csharp keyword">double"csharp plain">.IsNaN(longitude)) </div> <div class="line number111 index110 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number112 index111 alt1">"csharp spaces"> "csharp comments">// We have panned, so we must recalculate the longitude. </div> <div class="line number113 index112 alt2">"csharp spaces"> "csharp plain">longitude = XToLongitudeAtZoom(X, zoomLevel); </div> <div class="line number114 index113 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number115 index114 alt2">"csharp spaces"> "csharp keyword">return "csharp plain">longitude; </div> <div class="line number116 index115 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number117 index116 alt2">"csharp spaces"> "csharp keyword">set</div> <div class="line number118 index117 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number119 index118 alt2">"csharp spaces"> "csharp plain">longitude = value; </div> <div class="line number120 index119 alt1">"csharp spaces"> "csharp plain">x = LongitudeToXAtZoom(longitude, zoomLevel); </div> <div class="line number121 index120 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number122 index121 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number123 index122 alt2">"csharp spaces"> </div> <div class="line number124 index123 alt1">"csharp spaces"> </div> <div class="line number125 index124 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number126 index125 alt1">"csharp spaces"> "csharp color1">/// The X-coordinate of the center of the map, in pixels, </div> <div class="line number127 index126 alt2">"csharp spaces"> "csharp color1">/// in world coordinates (at the current zoom level). </div> <div class="line number128 index127 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number129 index128 alt2">"csharp spaces"> "csharp keyword">public "csharp keyword">int "csharp plain">X </div> <div class="line number130 index129 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number131 index130 alt2">"csharp spaces"> "csharp keyword">get "csharp plain">{ "csharp keyword">return "csharp plain">x; } </div> <div class="line number132 index131 alt1">"csharp spaces"> "csharp keyword">set</div> <div class="line number133 index132 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number134 index133 alt1">"csharp spaces"> "csharp plain">x = value; </div> <div class="line number135 index134 alt2">"csharp spaces"> "csharp comments">// We don't bother recalculating the longitude until asked for. </div> <div class="line number136 index135 alt1">"csharp spaces"> "csharp comments">// So right now, we just invalidate it. </div> <div class="line number137 index136 alt2">"csharp spaces"> "csharp plain">longitude = "csharp keyword">double"csharp plain">.NaN; </div> <div class="line number138 index137 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number139 index138 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number140 index139 alt1">"csharp spaces"> </div> <div class="line number141 index140 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number142 index141 alt1">"csharp spaces"> "csharp color1">/// The Y-coordinate of the center of the map, in pixels, </div> <div class="line number143 index142 alt2">"csharp spaces"> "csharp color1">/// in world coordinates (at the current zoom level). </div> <div class="line number144 index143 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number145 index144 alt2">"csharp spaces"> "csharp keyword">public "csharp keyword">int "csharp plain">Y </div> <div class="line number146 index145 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number147 index146 alt2">"csharp spaces"> "csharp keyword">get "csharp plain">{ "csharp keyword">return "csharp plain">y; } </div> <div class="line number148 index147 alt1">"csharp spaces"> "csharp keyword">set</div> <div class="line number149 index148 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number150 index149 alt1">"csharp spaces"> "csharp plain">y = value; </div> <div class="line number151 index150 alt2">"csharp spaces"> "csharp comments">// We don't bother recalculating the latitude until asked for. </div> <div class="line number152 index151 alt1">"csharp spaces"> "csharp comments">// So right now, we just invalidate it. </div> <div class="line number153 index152 alt2">"csharp spaces"> "csharp plain">latitude = "csharp keyword">double"csharp plain">.NaN; </div> <div class="line number154 index153 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number155 index154 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number156 index155 alt1">"csharp spaces"> </div> <div class="line number157 index156 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number158 index157 alt1">"csharp spaces"> "csharp color1">/// The style of map (road, aerial, or hybrid). </div> <div class="line number159 index158 alt2">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number160 index159 alt1">"csharp spaces"> "csharp keyword">public "csharp plain">MapStyle MapStyle </div> <div class="line number161 index160 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number162 index161 alt1">"csharp spaces"> "csharp keyword">get "csharp plain">{ "csharp keyword">return "csharp plain">mapStyle; } </div> <div class="line number163 index162 alt2">"csharp spaces"> "csharp keyword">set "csharp plain">{ mapStyle = value; } </div> <div class="line number164 index163 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number165 index164 alt2">"csharp spaces"> </div> <div class="line number166 index165 alt1">"csharp spaces"> "csharp keyword">private "csharp plain">MapLanguageVersion languageVersion; </div> <div class="line number167 index166 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number168 index167 alt1">"csharp spaces"> "csharp color1">/// The version of map (chinese,us). </div> <div class="line number169 index168 alt2">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number170 index169 alt1">"csharp spaces"> "csharp keyword">public "csharp plain">MapLanguageVersion LanguageVersion </div> <div class="line number171 index170 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number172 index171 alt1">"csharp spaces"> "csharp keyword">get "csharp plain">{ "csharp keyword">return "csharp plain">languageVersion; } </div> <div class="line number173 index172 alt2">"csharp spaces"> "csharp keyword">set "csharp plain">{ languageVersion = value; } </div> <div class="line number174 index173 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number175 index174 alt2">"csharp spaces"> </div> <div class="line number176 index175 alt1">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number177 index176 alt2">"csharp spaces"> "csharp color1">/// The current zoom level. </div> <div class="line number178 index177 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number179 index178 alt2">"csharp spaces"> "csharp keyword">public "csharp keyword">int "csharp plain">ZoomLevel </div> <div class="line number180 index179 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number181 index180 alt2">"csharp spaces"> "csharp keyword">get "csharp plain">{ "csharp keyword">return "csharp plain">zoomLevel; } </div> <div class="line number182 index181 alt1">"csharp spaces"> "csharp keyword">set</div> <div class="line number183 index182 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number184 index183 alt1">"csharp spaces"> "csharp comments">// Make sure we have a valid lat/long at the old zoom level </div> <div class="line number185 index184 alt2">"csharp spaces"> "csharp comments">// before we change the zoom level. </div> <div class="line number186 index185 alt1">"csharp spaces"> "csharp keyword">double "csharp plain">lon = Longitude; </div> <div class="line number187 index186 alt2">"csharp spaces"> "csharp keyword">double "csharp plain">lat = Latitude; </div> <div class="line number188 index187 alt1">"csharp spaces"> "csharp plain">zoomLevel = value; </div> <div class="line number189 index188 alt2">"csharp spaces"> "csharp comments">//x = LongitudeToXAtZoom(lon, zoomLevel); </div> <div class="line number190 index189 alt1">"csharp spaces"> "csharp comments">//y = LatitudeToYAtZoom(lat, zoomLevel); </div> <div class="line number191 index190 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number192 index191 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number193 index192 alt2">"csharp spaces"> </div> <div class="line number194 index193 alt1">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number195 index194 alt2">"csharp spaces"> "csharp color1">/// Zooms the in. </div> <div class="line number196 index195 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number197 index196 alt2">"csharp spaces"> "csharp keyword">public "csharp keyword">void "csharp plain">ZoomIn() </div> <div class="line number198 index197 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number199 index198 alt2">"csharp spaces"> "csharp keyword">if "csharp plain">(ZoomLevel < MaximumZoom) </div> <div class="line number200 index199 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number201 index200 alt2">"csharp spaces"> "csharp plain">ZoomLevel = ZoomLevel + 1; </div> <div class="line number202 index201 alt1">"csharp spaces"> "csharp plain">x = 2 * X; </div> <div class="line number203 index202 alt2">"csharp spaces"> "csharp plain">y = 2 * Y; </div> <div class="line number204 index203 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number205 index204 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number206 index205 alt1">"csharp spaces"> </div> <div class="line number207 index206 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number208 index207 alt1">"csharp spaces"> "csharp color1">/// Zooms the out. </div> <div class="line number209 index208 alt2">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number210 index209 alt1">"csharp spaces"> "csharp keyword">public "csharp keyword">void "csharp plain">ZoomOut() </div> <div class="line number211 index210 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number212 index211 alt1">"csharp spaces"> "csharp keyword">if "csharp plain">(ZoomLevel > MinimumZoom) </div> <div class="line number213 index212 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number214 index213 alt1">"csharp spaces"> "csharp plain">ZoomLevel = ZoomLevel - 1; </div> <div class="line number215 index214 alt2">"csharp spaces"> "csharp plain">x = X / 2; </div> <div class="line number216 index215 alt1">"csharp spaces"> "csharp plain">y = Y / 2; </div> <div class="line number217 index216 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number218 index217 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number219 index218 alt2">"csharp spaces"> </div> <div class="line number220 index219 alt1">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number221 index220 alt2">"csharp spaces"> "csharp color1">/// Initializes a new instance of the <see cref="Map"/> class. </div> <div class="line number222 index221 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number223 index222 alt2">"csharp spaces"> "csharp color1">/// <param name="width">The width.</param> </div> <div class="line number224 index223 alt1">"csharp spaces"> "csharp color1">/// <param name="height">The height.</param> </div> <div class="line number225 index224 alt2">"csharp spaces"> "csharp color1">/// <param name="latitude">The latitude.</param> </div> <div class="line number226 index225 alt1">"csharp spaces"> "csharp color1">/// <param name="longitude">The longitude.</param> </div> <div class="line number227 index226 alt2">"csharp spaces"> "csharp color1">/// <param name="zoomLevel">The zoom level.</param> </div> <div class="line number228 index227 alt1">"csharp spaces"> "csharp color1">/// <param name="mapStyle">The map style.</param> </div> <div class="line number229 index228 alt2">"csharp spaces"> "csharp color1">/// <param name="mlv">The MLV.</param> </div> <div class="line number230 index229 alt1">"csharp spaces"> "csharp keyword">public "csharp plain">Map( </div> <div class="line number231 index230 alt2">"csharp spaces"> "csharp keyword">int "csharp plain">width, </div> <div class="line number232 index231 alt1">"csharp spaces"> "csharp keyword">int "csharp plain">height, </div> <div class="line number233 index232 alt2">"csharp spaces"> "csharp keyword">double "csharp plain">latitude, </div> <div class="line number234 index233 alt1">"csharp spaces"> "csharp keyword">double "csharp plain">longitude, </div> <div class="line number235 index234 alt2">"csharp spaces"> "csharp keyword">int "csharp plain">zoomLevel, </div> <div class="line number236 index235 alt1">"csharp spaces"> "csharp plain">MapStyle mapStyle, </div> <div class="line number237 index236 alt2">"csharp spaces"> "csharp plain">MapLanguageVersion mlv) </div> <div class="line number238 index237 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number239 index238 alt2">"csharp spaces"> "csharp keyword">this"csharp plain">.width = width; </div> <div class="line number240 index239 alt1">"csharp spaces"> "csharp keyword">this"csharp plain">.height = height; </div> <div class="line number241 index240 alt2">"csharp spaces"> "csharp keyword">this"csharp plain">.zoomLevel = zoomLevel; </div> <div class="line number242 index241 alt1">"csharp spaces"> "csharp keyword">this"csharp plain">.Latitude = latitude; </div> <div class="line number243 index242 alt2">"csharp spaces"> "csharp keyword">this"csharp plain">.Longitude = longitude; </div> <div class="line number244 index243 alt1">"csharp spaces"> "csharp keyword">this"csharp plain">.MapStyle = mapStyle; </div> <div class="line number245 index244 alt2">"csharp spaces"> "csharp keyword">this"csharp plain">.LanguageVersion = mlv; </div> <div class="line number246 index245 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number247 index246 alt2">"csharp spaces"> </div> <div class="line number248 index247 alt1">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number249 index248 alt2">"csharp spaces"> "csharp color1">/// Lats the long to pixel XY. </div> <div class="line number250 index249 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number251 index250 alt2">"csharp spaces"> "csharp color1">/// <param name="latitude">The latitude.</param> </div> <div class="line number252 index251 alt1">"csharp spaces"> "csharp color1">/// <param name="longitude">The longitude.</param> </div> <div class="line number253 index252 alt2">"csharp spaces"> "csharp color1">/// <param name="levelOfDetail">The level of detail.</param> </div> <div class="line number254 index253 alt1">"csharp spaces"> "csharp color1">/// <param name="pixelX">The pixel X.</param> </div> <div class="line number255 index254 alt2">"csharp spaces"> "csharp color1">/// <param name="pixelY">The pixel Y.</param> </div> <div class="line number256 index255 alt1">"csharp spaces"> "csharp keyword">public "csharp keyword">static "csharp keyword">void "csharp plain">LatLongToPixelXY("csharp keyword">double "csharp plain">latitude, "csharp keyword">double "csharp plain">longitude, "csharp keyword">int "csharp plain">levelOfDetail, </div> <div class="line number257 index256 alt2">"csharp spaces"> "csharp keyword">out "csharp keyword">int "csharp plain">pixelX, "csharp keyword">out "csharp keyword">int "csharp plain">pixelY) </div> <div class="line number258 index257 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number259 index258 alt2">"csharp spaces"> "csharp plain">latitude = Clip(latitude, MinLatitude, MaxLatitude); </div> <div class="line number260 index259 alt1">"csharp spaces"> "csharp plain">longitude = Clip(longitude, MinLongitude, MaxLongitude); </div> <div class="line number261 index260 alt2">"csharp spaces"> </div> <div class="line number262 index261 alt1">"csharp spaces"> "csharp keyword">double "csharp plain">x = (longitude + 180) / 360; </div> <div class="line number263 index262 alt2">"csharp spaces"> "csharp keyword">double "csharp plain">sinLatitude = Math.Sin(latitude * Math.PI / 180); </div> <div class="line number264 index263 alt1">"csharp spaces"> "csharp keyword">double "csharp plain">y = 0.5 - Math.Log((1 + sinLatitude) / (1 - sinLatitude)) / (4 * Math.PI); </div> <div class="line number265 index264 alt2">"csharp spaces"> </div> <div class="line number266 index265 alt1">"csharp spaces"> "csharp keyword">uint "csharp plain">mapSize = MapSize(levelOfDetail); </div> <div class="line number267 index266 alt2">"csharp spaces"> "csharp plain">pixelX = ("csharp keyword">int"csharp plain">)Clip(x * mapSize + 0.5, 0, mapSize - 1); </div> <div class="line number268 index267 alt1">"csharp spaces"> "csharp plain">pixelY = ("csharp keyword">int"csharp plain">)Clip(y * mapSize + 0.5, 0, mapSize - 1); </div> <div class="line number269 index268 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number270 index269 alt1">"csharp spaces"> </div> <div class="line number271 index270 alt2">"csharp spaces"> </div> <div class="line number272 index271 alt1">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number273 index272 alt2">"csharp spaces"> "csharp color1">/// Lats the long to tile XY. </div> <div class="line number274 index273 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number275 index274 alt2">"csharp spaces"> "csharp color1">/// <param name="latitude">The latitude.</param> </div> <div class="line number276 index275 alt1">"csharp spaces"> "csharp color1">/// <param name="longitude">The longitude.</param> </div> <div class="line number277 index276 alt2">"csharp spaces"> "csharp color1">/// <param name="levelOfDetail">The level of detail.</param> </div> <div class="line number278 index277 alt1">"csharp spaces"> "csharp color1">/// <param name="tileX">The tile X.</param> </div> <div class="line number279 index278 alt2">"csharp spaces"> "csharp color1">/// <param name="tileY">The tile Y.</param> </div> <div class="line number280 index279 alt1">"csharp spaces"> "csharp keyword">public "csharp keyword">static "csharp keyword">void "csharp plain">LatLongToTileXY("csharp keyword">double "csharp plain">latitude, "csharp keyword">double "csharp plain">longitude, "csharp keyword">int "csharp plain">levelOfDetail, "csharp keyword">out "csharp keyword">int "csharp plain">tileX, "csharp keyword">out "csharp keyword">int "csharp plain">tileY) </div> <div class="line number281 index280 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number282 index281 alt1">"csharp spaces"> "csharp keyword">int "csharp plain">pixelX = 0; </div> <div class="line number283 index282 alt2">"csharp spaces"> "csharp keyword">int "csharp plain">pixelY = 0; </div> <div class="line number284 index283 alt1">"csharp spaces"> </div> <div class="line number285 index284 alt2">"csharp spaces"> "csharp plain">LatLongToPixelXY(latitude, longitude, levelOfDetail, "csharp keyword">out "csharp plain">pixelX, "csharp keyword">out "csharp plain">pixelY); </div> <div class="line number286 index285 alt1">"csharp spaces"> "csharp plain">PixelXYToTileXY(pixelX, pixelY, "csharp keyword">out "csharp plain">tileX, "csharp keyword">out "csharp plain">tileY); </div> <div class="line number287 index286 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number288 index287 alt1">"csharp spaces"> </div> <div class="line number289 index288 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number290 index289 alt1">"csharp spaces"> "csharp color1">/// Pixels the XY to tile XY. </div> <div class="line number291 index290 alt2">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number292 index291 alt1">"csharp spaces"> "csharp color1">/// <param name="pixelX">The pixel X.</param> </div> <div class="line number293 index292 alt2">"csharp spaces"> "csharp color1">/// <param name="pixelY">The pixel Y.</param> </div> <div class="line number294 index293 alt1">"csharp spaces"> "csharp color1">/// <param name="tileX">The tile X.</param> </div> <div class="line number295 index294 alt2">"csharp spaces"> "csharp color1">/// <param name="tileY">The tile Y.</param> </div> <div class="line number296 index295 alt1">"csharp spaces"> "csharp keyword">public "csharp keyword">static "csharp keyword">void "csharp plain">PixelXYToTileXY("csharp keyword">int "csharp plain">pixelX, "csharp keyword">int "csharp plain">pixelY, "csharp keyword">out "csharp keyword">int "csharp plain">tileX, "csharp keyword">out "csharp keyword">int "csharp plain">tileY) </div> <div class="line number297 index296 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number298 index297 alt1">"csharp spaces"> "csharp plain">tileX = pixelX / 256; </div> <div class="line number299 index298 alt2">"csharp spaces"> "csharp plain">tileY = pixelY / 256; </div> <div class="line number300 index299 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number301 index300 alt2">"csharp spaces"> </div> <div class="line number302 index301 alt1">"csharp spaces"> </div> <div class="line number303 index302 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number304 index303 alt1">"csharp spaces"> "csharp color1">/// Maps the size. </div> <div class="line number305 index304 alt2">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number306 index305 alt1">"csharp spaces"> "csharp color1">/// <param name="levelOfDetail">The level of detail.</param> </div> <div class="line number307 index306 alt2">"csharp spaces"> "csharp color1">/// <returns></returns> </div> <div class="line number308 index307 alt1">"csharp spaces"> "csharp keyword">public "csharp keyword">static "csharp keyword">uint "csharp plain">MapSize("csharp keyword">int "csharp plain">levelOfDetail) </div> <div class="line number309 index308 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number310 index309 alt1">"csharp spaces"> "csharp keyword">return "csharp plain">("csharp keyword">uint"csharp plain">)256 << levelOfDetail; </div> <div class="line number311 index310 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number312 index311 alt1">"csharp spaces"> </div> <div class="line number313 index312 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number314 index313 alt1">"csharp spaces"> "csharp color1">/// Clips the specified n. </div> <div class="line number315 index314 alt2">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number316 index315 alt1">"csharp spaces"> "csharp color1">/// <param name="n">The n.</param> </div> <div class="line number317 index316 alt2">"csharp spaces"> "csharp color1">/// <param name="minValue">The min value.</param> </div> <div class="line number318 index317 alt1">"csharp spaces"> "csharp color1">/// <param name="maxValue">The max value.</param> </div> <div class="line number319 index318 alt2">"csharp spaces"> "csharp color1">/// <returns></returns> </div> <div class="line number320 index319 alt1">"csharp spaces"> "csharp keyword">private "csharp keyword">static "csharp keyword">double "csharp plain">Clip("csharp keyword">double "csharp plain">n, "csharp keyword">double "csharp plain">minValue, "csharp keyword">double "csharp plain">maxValue) </div> <div class="line number321 index320 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number322 index321 alt1">"csharp spaces"> "csharp keyword">return "csharp plain">Math.Min(Math.Max(n, minValue), maxValue); </div> <div class="line number323 index322 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number324 index323 alt1">"csharp spaces"> </div> <div class="line number325 index324 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number326 index325 alt1">"csharp spaces"> "csharp color1">/// Meterses the per pixel. </div> <div class="line number327 index326 alt2">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number328 index327 alt1">"csharp spaces"> "csharp color1">/// <param name="zl">The zl.</param> </div> <div class="line number329 index328 alt2">"csharp spaces"> "csharp color1">/// <returns></returns> </div> <div class="line number330 index329 alt1">"csharp spaces"> "csharp keyword">private "csharp keyword">static "csharp keyword">double "csharp plain">MetersPerPixel("csharp keyword">int "csharp plain">zl) </div> <div class="line number331 index330 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number332 index331 alt1">"csharp spaces"> "csharp keyword">return "csharp plain">baseMetersPerPixel / (1 << zl); </div> <div class="line number333 index332 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number334 index333 alt1">"csharp spaces"> </div> <div class="line number335 index334 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number336 index335 alt1">"csharp spaces"> "csharp color1">/// Ys to latitude at zoom. </div> <div class="line number337 index336 alt2">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number338 index337 alt1">"csharp spaces"> "csharp color1">/// <param name="y">The y.</param> </div> <div class="line number339 index338 alt2">"csharp spaces"> "csharp color1">/// <param name="zl">The zl.</param> </div> <div class="line number340 index339 alt1">"csharp spaces"> "csharp color1">/// <returns></returns> </div> <div class="line number341 index340 alt2">"csharp spaces"> "csharp keyword">private "csharp keyword">double "csharp plain">YToLatitudeAtZoom("csharp keyword">int "csharp plain">y, "csharp keyword">int "csharp plain">zl) </div> <div class="line number342 index341 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number343 index342 alt2">"csharp spaces"> "csharp keyword">double "csharp plain">metersY = Map.offsetMeters - y * MetersPerPixel(zl); </div> <div class="line number344 index343 alt1">"csharp spaces"> "csharp keyword">return "csharp plain">RadToDeg(Math.PI / 2 - 2 * Math.Atan(Math.Exp(-metersY / earthRadius))); </div> <div class="line number345 index344 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number346 index345 alt1">"csharp spaces"> </div> <div class="line number347 index346 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number348 index347 alt1">"csharp spaces"> "csharp color1">/// Xs to longitude at zoom. </div> <div class="line number349 index348 alt2">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number350 index349 alt1">"csharp spaces"> "csharp color1">/// <param name="x">The x.</param> </div> <div class="line number351 index350 alt2">"csharp spaces"> "csharp color1">/// <param name="zl">The zl.</param> </div> <div class="line number352 index351 alt1">"csharp spaces"> "csharp color1">/// <returns></returns> </div> <div class="line number353 index352 alt2">"csharp spaces"> "csharp keyword">private "csharp keyword">double "csharp plain">XToLongitudeAtZoom("csharp keyword">int "csharp plain">x, "csharp keyword">int "csharp plain">zl) </div> <div class="line number354 index353 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number355 index354 alt2">"csharp spaces"> "csharp keyword">double "csharp plain">metersX = x * MetersPerPixel(zl) - offsetMeters; </div> <div class="line number356 index355 alt1">"csharp spaces"> "csharp keyword">return "csharp plain">RadToDeg(metersX / earthRadius); </div> <div class="line number357 index356 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number358 index357 alt1">"csharp spaces"> </div> <div class="line number359 index358 alt2">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number360 index359 alt1">"csharp spaces"> "csharp color1">/// Longitudes to X at zoom. </div> <div class="line number361 index360 alt2">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number362 index361 alt1">"csharp spaces"> "csharp color1">/// <param name="longitude">The longitude.</param> </div> <div class="line number363 index362 alt2">"csharp spaces"> "csharp color1">/// <param name="zl">The zl.</param> </div> <div class="line number364 index363 alt1">"csharp spaces"> "csharp color1">/// <returns></returns> </div> <div class="line number365 index364 alt2">"csharp spaces"> "csharp keyword">private "csharp keyword">int "csharp plain">LongitudeToXAtZoom("csharp keyword">double "csharp plain">longitude, "csharp keyword">int "csharp plain">zl) </div> <div class="line number366 index365 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number367 index366 alt2">"csharp spaces"> "csharp plain">longitude = Clip(longitude, MinLongitude, MaxLongitude); </div> <div class="line number368 index367 alt1">"csharp spaces"> </div> <div class="line number369 index368 alt2">"csharp spaces"> "csharp keyword">double "csharp plain">x = (longitude + 180) / 360; </div> <div class="line number370 index369 alt1">"csharp spaces"> </div> <div class="line number371 index370 alt2">"csharp spaces"> "csharp keyword">uint "csharp plain">mapSize = MapSize(zl); </div> <div class="line number372 index371 alt1">"csharp spaces"> "csharp keyword">return "csharp plain">("csharp keyword">int"csharp plain">)Clip(x * mapSize + 0.5, 0, mapSize - 1); </div> <div class="line number373 index372 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number374 index373 alt1">"csharp spaces"> </div> <div class="line number375 index374 alt2">"csharp spaces"> </div> <div class="line number376 index375 alt1">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number377 index376 alt2">"csharp spaces"> "csharp color1">/// Latitudes to Y at zoom. </div> <div class="line number378 index377 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number379 index378 alt2">"csharp spaces"> "csharp color1">/// <param name="latitude">The latitude.</param> </div> <div class="line number380 index379 alt1">"csharp spaces"> "csharp color1">/// <param name="zl">The zl.</param> </div> <div class="line number381 index380 alt2">"csharp spaces"> "csharp color1">/// <returns></returns> </div> <div class="line number382 index381 alt1">"csharp spaces"> "csharp keyword">private "csharp keyword">int "csharp plain">LatitudeToYAtZoom("csharp keyword">double "csharp plain">latitude, "csharp keyword">int "csharp plain">zl) </div> <div class="line number383 index382 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number384 index383 alt1">"csharp spaces"> "csharp keyword">double "csharp plain">sinLatitude = Math.Sin(latitude * Math.PI / 180); </div> <div class="line number385 index384 alt2">"csharp spaces"> "csharp keyword">double "csharp plain">y = 0.5 - Math.Log((1 + sinLatitude) / (1 - sinLatitude)) / (4 * Math.PI); </div> <div class="line number386 index385 alt1">"csharp spaces"> </div> <div class="line number387 index386 alt2">"csharp spaces"> "csharp keyword">uint "csharp plain">mapSize = MapSize(zl); </div> <div class="line number388 index387 alt1">"csharp spaces"> </div> <div class="line number389 index388 alt2">"csharp spaces"> "csharp keyword">return "csharp plain">("csharp keyword">int"csharp plain">)Clip(y * mapSize + 0.5, 0, mapSize - 1); </div> <div class="line number390 index389 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number391 index390 alt2">"csharp spaces"> </div> <div class="line number392 index391 alt1">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number393 index392 alt2">"csharp spaces"> "csharp color1">/// Degs to RAD. </div> <div class="line number394 index393 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number395 index394 alt2">"csharp spaces"> "csharp color1">/// <param name="d">The d.</param> </div> <div class="line number396 index395 alt1">"csharp spaces"> "csharp color1">/// <returns></returns> </div> <div class="line number397 index396 alt2">"csharp spaces"> "csharp keyword">private "csharp keyword">static "csharp keyword">double "csharp plain">DegToRad("csharp keyword">double "csharp plain">d) </div> <div class="line number398 index397 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number399 index398 alt2">"csharp spaces"> "csharp keyword">return "csharp plain">d * Math.PI / 180.0; </div> <div class="line number400 index399 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number401 index400 alt2">"csharp spaces"> </div> <div class="line number402 index401 alt1">"csharp spaces"> "csharp color1">/// <summary> </div> <div class="line number403 index402 alt2">"csharp spaces"> "csharp color1">/// RADs to deg. </div> <div class="line number404 index403 alt1">"csharp spaces"> "csharp color1">/// </summary> </div> <div class="line number405 index404 alt2">"csharp spaces"> "csharp color1">/// <param name="r">The r.</param> </div> <div class="line number406 index405 alt1">"csharp spaces"> "csharp color1">/// <returns></returns> </div> <div class="line number407 index406 alt2">"csharp spaces"> "csharp keyword">private "csharp keyword">static "csharp keyword">double "csharp plain">RadToDeg("csharp keyword">double "csharp plain">r) </div> <div class="line number408 index407 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number409 index408 alt2">"csharp spaces"> "csharp keyword">return "csharp plain">r * 180.0 / Math.PI; </div> <div class="line number410 index409 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number411 index410 alt2">"csharp spaces"> </div> <div class="line number412 index411 alt1">"csharp spaces"> "csharp keyword">public "csharp keyword">static "csharp keyword">double "csharp plain">PixelXToLng("csharp keyword">double "csharp plain">pixelX, "csharp keyword">int "csharp plain">zoom) </div> <div class="line number413 index412 alt2">"csharp spaces"> "csharp plain">{ </div> <div class="line number414 index413 alt1">"csharp spaces"> "csharp keyword">return "csharp plain">pixelX * 360 / (256L << zoom) - 180; </div> <div class="line number415 index414 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number416 index415 alt1">"csharp spaces"> </div> <div class="line number417 index416 alt2">"csharp spaces"> "csharp keyword">public "csharp keyword">static "csharp keyword">double "csharp plain">PixelYToLat("csharp keyword">double "csharp plain">pixelY, "csharp keyword">int "csharp plain">zoom) </div> <div class="line number418 index417 alt1">"csharp spaces"> "csharp plain">{ </div> <div class="line number419 index418 alt2">"csharp spaces"> "csharp keyword">double "csharp plain">y = 2 * Math.PI * (1 - pixelY / (128 << zoom)); </div> <div class="line number420 index419 alt1">"csharp spaces"> "csharp keyword">double "csharp plain">z = Math.Pow(Math.E, y); </div> <div class="line number421 index420 alt2">"csharp spaces"> "csharp keyword">double "csharp plain">siny = (z - 1) / (z + 1); </div> <div class="line number422 index421 alt1">"csharp spaces"> "csharp keyword">return "csharp plain">Math.Asin(siny) * 180 / Math.PI; </div> <div class="line number423 index422 alt2">"csharp spaces"> "csharp plain">} </div> <div class="line number424 index423 alt1">"csharp spaces"> "csharp plain">} </div> <div class="line number425 index424 alt2">"csharp plain">}</div> </div> </div>
试试其它关键字
map地图类
同语言下
.
文件IO 操作类库
.
Check图片类型[JPEG(.jpg 、.jpeg),TIF,GIF,BMP,PNG,P
.
机器名和IP取得(IPV4 IPV6)
.
Tiff转换Bitmap
.
linqHelper
.
MadieHelper.cs
.
RegHelper.cs
.
如果关闭一个窗体后激活另一个窗体的事件或方法
.
创建日志通用类
.
串口辅助开发类
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
lelese7en
贡献的其它代码
(
1
)
.
map地图类
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3