2012-05-25 2 views
0

저는 canon selpy cp800으로 손쉽게 그림을 인쇄 할 수있는 도구를 개발하고 있습니다. 이미지는 다음과 같은 방법으로 인쇄되어 있습니다 :이미지 인쇄를위한 VB.NET 도구 - 품질 조정

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)) 사진을 -> 유형 이미지

의 목적은 나는이 이미지와 아무것도하지 않았다.. Image.FromFile() 메서드로만로드됩니다.

다음 이미지 내에서 내 문제를 볼 수 있습니다. 이것은이 방법으로 인쇄 된 이미지 스캔 (위)과 Windows 이미지 뷰어와 함께 인쇄 된 동일한 이미지의 스캔입니다. 첫 번째 이미지는 배경과 그림자의 색조 오류를 보았습니다.

enter image description here

사람에게이 문제를 해결하는 아이디어가있다? 이 우우가 언급 한 바와 같이 비트 심도의 문제가 아닌 경우

+0

liek 조금 깊이 문제점을보십시오. 또는 디더링. –

답변

1

, 그것은 .DrawImage을하기 전에 이러한

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

중 하나 또는 모두를 설정하는 데 도움이 될 수 있습니다.

+0

고마워요. 문제를 해결합니다. ;-) – Aprilia1982

-1

다음과 같이 달성 한 최상의 품질 : 1) 필자는 iTextsharp 구성 요소를 사용하여 pdf에 그림을 넣었습니다. 2) pdf를 인쇄하십시오