Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I have Panel on windows form containing labels for displaying information and 2 PictureBox controls. One for Company logo & other for captured photo) When i print them either on Printer or just save in PDF format, both images looking very blur. I want to improve quality of images. So they will appear clear even after zoom.
Any suggestion.
Posted
Updated 5-Oct-15 21:39pm
v2
Comments
Ralf Meier 6-Oct-15 6:45am    
The Quality of Images could not be improved.
But ... if your Images itself have a high Resolution and only the printing makes them blur : how do you do the printing of the Images ?
Umesh AP 7-Oct-15 2:44am    
I am using PrintDocument class.
PrintDocument doc = new PrintDocument();
doc.PrintPage += this.Doc_PrintPage;
doc.Print();

private void Doc_PrintPage(object sender, PrintPageEventArgs e)
{
float x = 209, y = 8;
Bitmap bmp = new Bitmap(this.panel2.Width, this.panel2.Height);
this.panel2.DrawToBitmap(bmp, new Rectangle(0, 0, this.panel2.Width+2, this.panel2.Height+2));
e.Graphics.DrawImage((Image)bmp, x, y);
}

Also tried with SetResolution() and InterpolationMode property still no effect.
Umesh AP 9-Oct-15 8:22am    
Can anyone tell me what is the best way to display and print company logo in C# win form? Container may be anything.
Currently I am working with vector format images (.svg, .eps etc)

1 solution

https://msdn.microsoft.com/en-us/library/k0fsyd4e(v=vs.110).aspx
 
Share this answer
 
Comments
Umesh AP 7-Oct-15 2:47am    
Tried with different InterpolationMode property values still no effect.
Any other suggestion for improving image quality.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900