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



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

You cannot. A System.Drawing.Graphics object is used for drawing on a video
display device. It is like asking how one can save a canvas as a painting.
See http://msdn2.microsoft.com/en-us/library/system.drawing.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

A watched clock never boils.

"Josh Burkard" <jb@xxxxxxxxxxxxxxx> wrote in message
news:E85ED520-005B-44DB-BFB6-AE220265606C@xxxxxxxxxxxxxxxx
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


.



Relevant Pages