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

  • Thread starter Thread starter Josh Burkard
  • Start date Start date
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
 
OK, is there another way, i can save the Content of a WebBrowser Object to
an Image-File in VB.NET

Best Regard
Josh
 
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
 
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
 
Back
Top