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