上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页
摘要: #region 图片旋转函数 /// <summary> /// 以逆时针为方向对图像进行旋转 /// </summary> /// <param name="b">位图流</param> /// <param name="angle">旋转角度[0,360](前台给的)</param> /// <returns></returns> public static Bitmap Rotate(Bitmap b, int angle) { angle = angl 阅读全文
posted @ 2013-05-21 15:32 louiskoo 阅读(20542) 评论(2) 推荐(1) 编辑
摘要: 第一种方法: public static byte[] GetImagePixel(Bitmap img) { byte[] result = new byte[img.Width*img.Height*3]; int n = 0; for (int i = 0; i < img.Height; i++) { for (int j = 0; j < img.Width; j++) { result[... 阅读全文
posted @ 2013-05-21 15:31 louiskoo 阅读(14321) 评论(0) 推荐(0) 编辑
摘要: Re: Source pixel format is not supported by the filter !by andrew.kirillov » Tue Mar 16, 2010 12:57 pmYou need to check 2 things:1) Check documentation to see which pixel formats are supported by particular image processing routine (8 bpp greyscale or 24 bpp RGB or 32 bpp, etc). It was told man 阅读全文
posted @ 2013-05-20 21:49 louiskoo 阅读(624) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <style type="text/css"> html { height 阅读全文
posted @ 2013-05-15 22:05 louiskoo 阅读(262) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <style type="text/css"> html { height 阅读全文
posted @ 2013-05-15 21:52 louiskoo 阅读(1078) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <style type="text/css&qu 阅读全文
posted @ 2013-05-15 20:13 louiskoo 阅读(239) 评论(0) 推荐(0) 编辑
摘要: e.Row.Attributes.Add("Style", "background-color:#D3D3D3"); 阅读全文
posted @ 2013-05-13 16:49 louiskoo 阅读(238) 评论(0) 推荐(0) 编辑
摘要: var is_over = new ObjectParameter("ISOVER", typeof(string)); context.ExecuteFunction("AERO_STATUS_JUDGE", new ObjectParameter("AERO_ID", aero_id), is_over); string ret = is_over.Value.ToString();int K = context.ExecuteStoreCommand("delete from SRC_DEF_PLATFORM_AERO 阅读全文
posted @ 2013-05-13 16:42 louiskoo 阅读(557) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 判断是否是非法字符 /// </summary> /// <param name="str">判断是字符</param> /// <returns></returns> public static Boolean isLegalNumber(string str) { char[] charStr = str.ToLower().ToCharArray(); for (int i = 0; i < charStr.Length; i... 阅读全文
posted @ 2013-05-13 16:31 louiskoo 阅读(5401) 评论(1) 推荐(0) 编辑
摘要: if (!File.Exists(path)) { File.Create(path).Close(); } using (StreamWriter w = File.AppendText(path)) { w.WriteLine("Error log:"); w.WriteLine("Error Time:"+DateTime.Now); ... 阅读全文
posted @ 2013-05-13 16:11 louiskoo 阅读(193) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页