0

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

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);


    }

这是在面板中绘制的

4

0 回答 0