06 2021 档案
摘要:在C#中如何调用PDFCreator生成PDF文件呢? 第一步:安装PDFCreator (这个好像是废话) 第二步:创建C#项目,加入PDFCreator.exe COM引用 第三步:参见如下代码: public override void Process(ITask task, int inde
阅读全文
摘要:protected override void OnPaint(PaintEventArgs e) { base.OnPaint (e); FontFamily fontFamily = new FontFamily("Times New Roman"); Font font = new Font(
阅读全文
摘要:bitPhoto.Save(Response.OutputStream, ImageFormat.Jpeg); 图像保存的问题,默认的质量是60% EncoderParameter p; EncoderParameters ps; ps = new EncoderParameters(1); p =
阅读全文
摘要:/// <summary> /// 计算同比缩放的值 /// </summary> /// <param name="oW">原宽</param> /// <param name="oH">原高</param> /// <param name="w">目标宽</param> /// <param n
阅读全文
摘要:Introduction# When WPF application launched, it could take a while for a current language runtime (CLR) to initialize .NET Framework. As a result, fir
阅读全文
摘要:简单的岁数计算 DateTime now = DateTime.Today; int age = now.Year - bday.Year; if (bday > now.AddYears(-age)) age--; /// <summary> /// 计算日期的间隔(静态类) /// </summ
阅读全文