打印标签文本质量

时间:2014-08-05 15:54:04

标签: c# printing label software-quality

我已经阅读了很多关于印刷面板及其内容的类似问题,但我没有读到任何好的答案,他们只是提到了打印机和显示器的像素差异。 但是,我怎样才能打印出具有良好分辨率的简单文本标签。这就是我所拥有的

private void panel1_Paint(object sender, PaintEventArgs e){

e.Graphics.DrawString(Qtylbl.Text, drawFont, drawBrush, Qtylbl.Location.X, Qtylbl.Location.Y);
e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
e.Graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBilinear;
e.Graphics.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
e.Graphics.CompositingMode = System.Drawing.Drawing2D.CompositingMode.SourceOver;
e.Graphics.PixelOffsetMode =        System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
        e.Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; 
}
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
    {

        e.Graphics.DrawImage(memoryImage, 0, 0);


    }

这是在一个小组中绘制的

0 个答案:

没有答案