【发布时间】:2012-05-25 16:27:34
【问题描述】:
我正在开发一种使用佳能 selpy 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(_iActiveImage)).Picture --> image 类型的对象
我没有对这张图片做任何事情。它仅使用 Image.FromFile() 方法加载。
在下图中,您可以看到我的问题。这是使用此方法打印的图像的扫描(顶部)和使用 windows 图片查看器打印的相同图像的扫描。你看,你看到的第一张图像背景和阴影中的色调错误。
有人想解决这个问题吗?
【问题讨论】:
-
看起来有点深度问题..或抖动..