摘要: View Code private Byte[] YaSuo(Image img) { int height = 240; int width = img.Width * height / img.Height; Bitmap bmp = new Bitmap(width, height); Graphics grap = Graphics.FromImage(bmp); grap.SmoothingMode = System.Drawing.Drawing2D.Smo... 阅读全文
posted @ 2012-09-10 09:57 宋佳莉 阅读(180) 评论(0) 推荐(0) 编辑
摘要: View Code /// <summary>/// 转换为Decimal类型/// </summary>/// <param name="obj"></param>/// <returns></returns>public static decimal Hz_TypeChange_ToDecimal(this object obj){ if (obj == null) return 0M; decimal DecValue = 0; decimal.TryParse(obj.ToString(), o 阅读全文
posted @ 2012-09-10 09:53 宋佳莉 阅读(122) 评论(0) 推荐(0) 编辑