上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: PNG图像格式介绍: PNG是20世纪90年代中期开始开发的图像文件存储格式,其目的是企图替代GIF和TIFF文件格式,同时增加一些GIF文件格式所不具备的特性。流式 网络图形格式(Portable Network Graphic Format,PNG)名称来源于非官方的“PNG’s Not GIF”,是一种位图文件(bitmap file)存储格式,读成“ping”。PNG用来存储灰度图像时,... 阅读全文
posted @ 2012-02-03 21:56 千禧牛 阅读(277) 评论(0) 推荐(0)
摘要: 当用户在在SQL Server 2008企业管理器中更改表结构时,必须要先删除原来的表,然后重新创建新表,才能完成表的更改,如果强行更改会出现以下提示:不允许保存更改。您所做的更改要求删除并重新创建以下表。您对无法重新创建的标进行了更改或者启用了“阻止保存要求重新创建表的更改”选项。如果要去掉此提示,可从“工具”菜单中选择“选项”,在“选项”对话框中,选择Designers,选择“表设计器和数据库... 阅读全文
posted @ 2012-01-11 10:48 千禧牛 阅读(165) 评论(0) 推荐(0)
摘要: public boolean hasGPSDevice(Context context) { final LocationManager mgr = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); if ( mgr == null ) return false; final List<S... 阅读全文
posted @ 2012-01-11 09:56 千禧牛 阅读(706) 评论(0) 推荐(0)
摘要: 更改II7的应用程序池为经典Pool 阅读全文
posted @ 2012-01-06 22:00 千禧牛 阅读(164) 评论(0) 推荐(0)
摘要: 非常郁闷的问题,整了一个下午 走了很多弯路.系统重装之后出现这样的问题,在数据库连接字符串后面加CharSet=utf8;就解决了~ 阅读全文
posted @ 2012-01-06 21:53 千禧牛 阅读(178) 评论(0) 推荐(0)
摘要: //加文字水印System.Drawing.Image image = System.Drawing.Image.FromFile(path); Graphics g = Graphics.FromImage(image); g.DrawImage(image, 0, 0, image.Width, image.Height); Font f = new Font("Verdana",16); B... 阅读全文
posted @ 2011-12-28 19:51 千禧牛 阅读(284) 评论(0) 推荐(0)
摘要: http://json2csharp.com/ 在这个网站可以查看json串解析出来的C#类。 先定义好这个json解析出来的类, 然后通过下面的方法把json串转换成该类。 List<MapServer.Model.SearchResult> searchResult = JsonConvert.DeserializeObject<List<MapServer.Model.Sea... 阅读全文
posted @ 2011-10-21 16:00 千禧牛 阅读(582) 评论(0) 推荐(0)
摘要: 在.NET中要访问MySql,我采用的是MySql官方提供的.NET connector,此驱动只需要下载即可使用:http://dev.mysql.com/downloads/connector/net/1.0.html 在使用中积累了几点经验: 1)使用Parameter参数形式提交Command时必须要把"@"号换成"?"号,这一点让我困惑了一天,只是不明白MySQL为何要搞... 阅读全文
posted @ 2011-10-21 15:59 千禧牛 阅读(1131) 评论(1) 推荐(0)
摘要: 绘制的图形 已经保存在featuresLayer中,下面是关键代码 GeoRegion region = (featuresLayer.Features[0].Geometry as GeoRegion); ObservableCollection<Point2D> regionPtn = region.Parts.First(); coords = ""; foreach (Point2D ptn in regionPtn) { coords += "(... 阅读全文
posted @ 2011-08-24 16:28 千禧牛 阅读(388) 评论(0) 推荐(0)
摘要: /// <summary> /// 坐标范围定位 /// </summary> /// <param name="coords"></param> public void ZoomTo(string coords) { featuresLayer.Features.Clear(); string[] coordArr = coords.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries)... 阅读全文
posted @ 2011-08-24 16:25 千禧牛 阅读(779) 评论(0) 推荐(1)
上一页 1 2 3 4 5 6 ··· 9 下一页