摘要: http://blog.csdn.net/n5/article/details/45030063 阅读全文
posted @ 2016-07-06 11:37 慢慢摸索 阅读(284) 评论(0) 推荐(0) 编辑
摘要: string s = "这里放十六进制字符串"; byte[]buff=new byte[s.Length/2]; int index=0; for (int i = 0; i < s.Length; i += 2) { buff[index] = Convert.ToByte(s.Substrin 阅读全文
posted @ 2016-07-06 11:36 慢慢摸索 阅读(9279) 评论(0) 推荐(0) 编辑
摘要: 导出sql文件:mysqldump -h localhost -u root -p xsxj > d:\xsxj.sql 导入sql文件 MySQL> source d:/myprogram/database/db.sql; 删除数据库名 drop database <数据库名>; 增加字段: AL 阅读全文
posted @ 2016-07-06 11:36 慢慢摸索 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Bitmap pic = new Bitmap(图片文件名);int width = pic.Size.Width; // 图片的宽度int height = pic.Size.Height; // 图片的高度 阅读全文
posted @ 2016-07-06 11:33 慢慢摸索 阅读(6295) 评论(0) 推荐(1) 编辑
摘要: 替换图片 private void btnSkin_Click(object sender, RoutedEventArgs e) { string fName; OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "图像文件(*.png; 阅读全文
posted @ 2016-07-06 11:04 慢慢摸索 阅读(352) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { string fName; OpenFileDialog openFileDialog = new OpenFileDialog();//实例化 openFileDialog.Initi 阅读全文
posted @ 2016-07-06 11:03 慢慢摸索 阅读(553) 评论(0) 推荐(0) 编辑