摘要: 打开文件:var dialog = new OpenFileDialog { Multiselect = false }; var result = dialog.ShowDialog(); if (result == true) { using (var stream = dialog.File.OpenRead()) { var buffer = new byte[stream.Length]; ... 阅读全文
posted @ 2012-09-27 14:25 要等闲阿 阅读(1612) 评论(0) 推荐(0) 编辑
摘要: 方法:/// <summary> /// 将字符串转换成Color类型 /// </summary> /// <param name="color"></param> /// <returns></returns> public static Color ReturnColorFromString(string color) { color = color.Substring(1, color.Length-1); string alpha = color.Subst... 阅读全文
posted @ 2012-09-27 14:12 要等闲阿 阅读(1166) 评论(0) 推荐(0) 编辑