c# - Draw a bitmap from a control taller than the screen -


I have a lot of problems in saving the C # control in the bitmap file. I control the question in the question that is the surface of a drawing The user can write text, drag photos, and paint boxes. What is control is resizable and draggable, when the control is really big and is not fully visible on the screen, then some parts of the control are not shown because half-bit on the bitmap is portrayed. The code used to generate bitmap is quite simple:

  bitmap bitmap = new bitmap (myControl.Width, myControl.Height); MyControl.DrawToBitmap (bitmap);   

I have tried the following methods for a fully featured bitmap without any success:

  myControl.Invalidate (myControl.ClientRectangle, true) ; MyControl.Refresh (); MyControl.Update (); Application.DoEvents ();   

After the resolution and image quality become very important for that project, I can not measure the control to make it completely visible. In fact, I'm actually trying to scale the image to increase its quality. Is there any way I do not know about creating an image from the control?

You tank.

drawback map are limitations and do not always work as expected Try to work with the original GDI +



Comments