DrawToBitmap C# problem

  • Thread starter Thread starter omlac omlac
  • Start date Start date
O

omlac omlac

Hi, im having a problem with drawtobitmap in C# when i call the method its not printing the contents of a control. in my case richtext format, my code is below;
Bitmap bi = new Bitmap(this.rtfbody.Width + 200, this.rtfbody.Width + 200);
bi.SetResolution(3000, 3000);

// rf = rtfbody.CreateControl();
rtfbody.CreateControl();
rtfbody.DrawToBitmap(bi, new Rectangle(0, 0, rtfbody.Width + 200, rtfbody.Height + 200));
bi.Save(@"c:\abc.bmp"); //, PixelFormat.Format24bppRgb);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

using DrawToBitmap on WebBrowser--works for some sites, not others 0
Large Image 1
Accessing one Form from Another 5
Unexpected Stripes In Bitmap 2
html to image 6
Graphics 7
Invoke in C# 1
about some drawing 1

Back
Top