Getting Bitmap from WebBrowser2
-
Hi there ! I want to embed the MS IE Control into my application ( as covered by some tutorials here ) However ih ave one special requirement. Is it possible to get a BITMAP ( System.Drawing.Bitmap ) from this control ? I need that because i want to store it in a Texture for Managed DX9 .... any clues on this one ? Of course it would also be great to do that even if the webbrowser was not visible on screen.. In C++ i did that already ( overridng WM_PRINT etc and copying the image data by hand ) But how to do this in C#/NET Thanks
-
Hi there ! I want to embed the MS IE Control into my application ( as covered by some tutorials here ) However ih ave one special requirement. Is it possible to get a BITMAP ( System.Drawing.Bitmap ) from this control ? I need that because i want to store it in a Texture for Managed DX9 .... any clues on this one ? Of course it would also be great to do that even if the webbrowser was not visible on screen.. In C++ i did that already ( overridng WM_PRINT etc and copying the image data by hand ) But how to do this in C#/NET Thanks
If you've already done it in C++, the most efficient use of your time may be to wrap that code in a managed C++ object and then use that object from C#. John