How to save a Graphics Object to an Image File in VB.Net

J

Josh Burkard

Hello

i created a Graphics Object in VB.Net from a WebBrowser Object with
webbrowser.createGraphics

How can i save this Graphics Object to JPG / GIF / BMP or other Image-File?

Best Regards
Josh
 
J

Josh Burkard

OK, is there another way, i can save the Content of a WebBrowser Object to
an Image-File in VB.NET

Best Regard
Josh
 
R

Robbe Morris [C# MVP]

You use the .DrawImage method to draw it to an Image object.
Check out the code sample in the GenerateThumbNail method.

http://www.eggheadcafe.com/articles/20030515.asp

--
Robbe Morris - 2004-2006 Microsoft MVP C#
I've mapped the database to .NET class properties and methods to
implement an multi-layered object oriented environment for your
data access layer. Thus, you should rarely ever have to type the words
SqlCommand, SqlDataAdapter, or SqlConnection again.
http://www.eggheadcafe.com/articles/adonet_source_code_generator.asp
 
M

Morten Wennevik

Instead of cluttering up the newsgroups with trash posts, could you please
do your tests in these newsgroups instead

microsoft.public.test.here
microsoft.public.nntp.test
 

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