摘要: 1 BitmapImage myBitmapImage = new BitmapImage ( ); 2 myBitmapImage . BeginInit ( ); 3 myBitmapImage . UriSource = new Uri ... 阅读全文
posted @ 2015-08-05 19:53 gopher-lin 阅读(673) 评论(0) 推荐(0) 编辑
摘要: http://www.cxyclub.cn/n/41896/ 阅读全文
posted @ 2015-08-05 18:16 gopher-lin 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 这是在再做一个图片浏览的时候想到的问题,以为在图片浏览的时候有多种不同格式的文件需要打开,因此必须要让程序支持这种功能,假如我们只是打开一个类型的图片 我们可能会这样去写 ArrayList list = new ArrayList();//存放图片 string[] files;//需要打开... 阅读全文
posted @ 2015-08-05 12:52 gopher-lin 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 先介绍一下searchPattern通配符通配符描述*零个或多个字符?正好一个字符举例: ①“*t”搜索 path 中所有以字母“t”结尾的名称 ②“s*”搜索 path 中所有以字母“s”开头的名称①恰好为三个字符的 searchPattern 返回扩展名为三个或三个以上字符的文件。“*.ab... 阅读全文
posted @ 2015-08-05 12:43 gopher-lin 阅读(344) 评论(0) 推荐(0) 编辑
摘要: String、Path、File、Directroy 常用方法总结字符串(String):注意字符串是不可变的,所以这些函数都不会直接改变字符串的内容,而是把修改后的字符串的值通过函数返回值的形式返回。s.ToLower()与s=s.ToLower()不同:前一个得到s转换后的一个副本,s本身没变;... 阅读全文
posted @ 2015-08-05 12:29 gopher-lin 阅读(192) 评论(0) 推荐(0) 编辑