DrawToBitmap problem

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello,

I need to get an image from a control and all its children. I'm using DrawToBitmap, but there are problems with the final result. There are things that are not correctly painted on the image. I've tried other approaches using the WM_PRINT message, but the result is the same.
Is there any way to get a perfect image? I can't use BitBlt or do a screen capture because the control may be hidden from view.
Thanks in advance for any help given.

Regards,
paulo
.



Relevant Pages

  • Re: Control Background Image from parent form?
    ... manually handling the scroll. ... control to be semi-transparent, so what i thought of is to capture the ...  I'll check DrawToBitmap() and see how it works. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Control Background Image from parent form?
    ... manually handling the scroll. ... control to be semi-transparent, so what i thought of is to capture the ... I'll check DrawToBitmap() and see how it works. ...
    (microsoft.public.dotnet.languages.csharp)
  • DrawToBitmap C# problem
    ... 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, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: DrawToBitmap C# problem
    ... in my case richtext format, ... DrawToBitmap() only draws what you'd see on the screen. ... I haven't found a reliable .NET way to get a control to draw its entire self into a bitmap. ...
    (microsoft.public.dotnet.languages.csharp)
  • Screen capture control using WebBrowser control and GDI+ in a web app
    ... I'm trying to write a control that will take a screen capture of a ... I have code for taking a normal screen capture using GDI+ which works ... is of a remote website rather than of my PC. ... using the .NET WebBrowser control to load the website URL into. ...
    (microsoft.public.dotnet.framework.aspnet)