标签:sys ntp com event 属性 图片 打印 设置 sha
private void pd_PrintPage(object sender, PrintPageEventArgs e) { e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; //下面这个也设成高质量 e.Graphics.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality; //下面这个设成High e.Graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic; e.Graphics.DrawImage(image, e.Graphics.VisibleClipBounds); e.HasMorePages = false; }
关键在于
e.Graphics.VisibleClipBounds 设置打印可见区域 即整个图片
printDocument设置适应边框打印 特重要 找了半天 设置一个属性即可
标签:sys ntp com event 属性 图片 打印 设置 sha
原文地址:http://www.cnblogs.com/ProDoctor/p/7744072.html