Hi friends ,
I am working windows forms. I have problem, my problems is, I am converting panel control to image for print, Panel controlcantain richtextbox. Image is proper convert. But Image quality is poor and rich text box text is blurring I am using this code which is given below
public void GetPrintArea(Panel pnl)
{
MemoryImage = new Bitmap(pnl.Width, pnl.Height);
Rectangle rect = new Rectangle(0, 0, pnl.Width, pnl.Height);
pnl.DrawToBitmap(MemoryImage, new Rectangle(0, 0, pnl.Width, pnl.Height));
pnl.Invalidate();
}
Friends Is any other way to convert panel to image with high quelity?.
Please help.