Bitmap Save gives "A generic error occurred in GDI+"

G

Guest

I have a bitmap which I have retreived through the WebBrowser DrawToBitmap
method into a Bitmap. When I try to save the bitmap I get

"ExternalException occurred

A generic error occurred in GDI+"

Why can't I save the bitmap? I need to save it - how to do?
 
M

Morten Wennevik [C# MVP]

I have a bitmap which I have retreived through the WebBrowser DrawToBitmap
method into a Bitmap. When I try to save the bitmap I get

"ExternalException occurred

A generic error occurred in GDI+"

Why can't I save the bitmap? I need to save it - how to do?

Well, the documentation states. "This method is not supported by this control", so I'm not surprised the resulting Bitmap isn't valid.
 
G

Guest

That's too bad! If I really must have a snapshot from the WebBrowser then -
what to do?
 
M

Morten Wennevik [C# MVP]

The strange thing is that I do not always get this error. Sometimes it just
works...

Morten Wennevik said:
Well, the documentation states. "This method is not supported by this control", so I'm not surprised the resulting Bitmap isn't valid.

You may be able to save at times, but are those pictures any good?
 
G

Guest

I know.
That's too bad! If I really must have a snapshot from the WebBrowser then -
what to do?


 

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

Top