English 中文(简体)
VB.NET 图像印刷工具 - 质量调整
原标题:VB.NET Tool for Image Printing - Quality Ajustments

我正在开发一个工具,用一个甘蔗沙皮 cp800 来方便地打印图片。 图像的打印方法如下:

Private Sub BtnPrintClick(sender As Object, e As System.EventArgs) Handles ptnPrint.Click
    If PrintDialog1.ShowDialog() = DialogResult.OK Then
        pdPrintImage.Print()
    End If
End Sub

Private Sub PdPrintImagePrintPage(sender As Object, e As System.Drawing.Printing.PrintPageEventArgs) Handles pdPrintImage.PrintPage
    e.Graphics.DrawImage(_dPictures(_sPictures(_iActiveImage)).Picture, e.Graphics.VisibleClipBounds)
End Sub

_dPictures (_sPictures (_Avientimage)) 。 picture - & gt; 类型图像对象

我对此图像没有做任何事情。 它只装入图像。 来自 File () 的方法 。

您可以在下面的图像中看到我的问题。 这是用此方法打印的图像的扫描( 上方), 以及用窗口图片查看器打印的相同图像的扫描 。 您可以看到, 第一个您看到背景和阴影中的刻录错误的图像 。

""https://i.sstatic.net/f7WqA.jpg" alt="此处输入图像描述"/ >

有没有人想解决这个问题?

最佳回答

如果这不是Boo提到的一个有点深入的问题,也许能帮助确定其中的一个或两个问题。

e.Graphics.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic
e.Graphics.SmoothingMode = Drawing2D.SmoothingMode.HighQuality

做草图之前

问题回答

the best quality I achieved as follows: 1) I put a picture into pdf using components iTextsharp. 2) print the pdf





相关问题
Is Shared ReadOnly lazyloaded?

I was wondering when I write Shared ReadOnly Variable As DataType = New DataType() Or alternatively Shared ReadOnly Variable As New DataType() Is it lazy loaded or as the instance initializes? ...

Entertaining a baby with VB.NET

I would like to write a little application in VB.NET that will detect a baby s cry. How would I get started with such an application?

Choose Enter Rather than Pressing Ok button

I have many fields in the page and the last field is a dropdown with list of values. When I select an item in a dropdown and press Enter, it doesn t do the "Ok". Instead I have to manually click on Ok ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

Hover tooltip on specific words in rich text box?

I m trying to create something like a tooltip suddenly hoovering over the mouse pointer when specific words in the richt text box is hovered over. How can this be done?

热门标签