如何使用96 DPI打印 [英] How to Print with 96 DPI

查看:528
本文介绍了如何使用96 DPI打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

屏幕DPI为96,打印机DPI为600,我正在尝试打印图像.打印成功,但是图像质量不佳.

Hello Everybody,

My Screen DPI is 96 and my printer DPI is 600 and I am trying to print an Image. It prints successfully but Image quality is not fine.

Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs)

   e.Graphics.DrawImage(Image,0,0, Image.Width, Image.Height)

End Sub


所以,请帮帮我.如何提高图像质量?

谢谢


So, please help me. How can I improve the quality of Image?

Thanks

推荐答案

您不能更改打印机的DPI,但是不能更改得太低.您可以放大图像以按比例放大DPI,但是您做得越多,图像的模糊性就越大.您只想在原始图像中没有足够的数据来保持想要打印的更大的质量.
You cannot change the DPI of the printer, well, not as low as you want it. You can magnify the image to scale up the DPI, but the more you do, the fuzzier the image is going to be. You simply do not have enough data in the original image to maintain quality the larger you want to print it.


您好,

您可以使用它来改善图像的质量:

Hello,

You can use this to improve the quality of an Image:

Imports System.Drawing.Drawing2D


e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic
e.Graphics.SmoothingMode = SmoothingMode.HighQuality
e.Graphics.PixelOffsetMode = PixelOffsetMode.HighQuality
e.Graphics.CompositingQuality = CompositingQuality.HighQuality

要设置分辨率,可以使用以下命令:

To set the resolution you can use this:

Dim bmp As New Bitmap(Image)
bmp.SetResolution(dpiX, dpiY)


这篇关于如何使用96 DPI打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆