Click here to Skip to main content
16,020,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to convert the panel control to an image in c#.

After converting the control to an image the text quality of an image must be printable.

The font must be smooth.
Posted
Comments
Amir Mahfoozi 25-Oct-11 8:48am    
on which platform wpf or winform ?
Ray Radin 25-Oct-11 9:17am    
What is the question?
phil.o 25-Oct-11 10:01am    
These are your requirements.
As RRadin said, what is your question ?

First off, printing an image from a screen control is not going to be high quality - you want to do printing separately, using the PrintDocument class[^]

Secondly, I wouldn't convert a panel to an image, unless there was a very good reason for it - it means that your form will only look good at a single size - you can't resize the panel easily.
 
Share this answer
 
v2
Comments
Member 3623312 25-Oct-11 14:40pm    
So, for PrintDocument we have to specify the file name ex:- *.txt file etc.
OriginalGriff 25-Oct-11 15:00pm    
You don't have to, but you can - it shows up as that in the print queue, so it makes some sense to give it a sensible name related to what the user is printing.
Could you please specify your working context
 
Share this answer
 

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