Re: From Graphics to Image

Fabian Schmied <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <[email protected]>
> So how do I capture the result into an Image/Bitmap object? Thanks.

Create a new Bitmap big enough to hold your graph (or use a Metafile
instead) and use Graphics.FromImage to obtain a Graphics object from
it. Be sure to dispose of the Graphics object after you have finished
drawing by disposing it or by employing a "using" statement.

Fabian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.