M
Marco Rego
I have a Metafile and a Graphics attached to it and I do several drawings on
the Metafile through the Graphics. After the drawings I need to print the
metafile.
If I try to print the Metafile right away, nothing shows on the page, now,
If I do a Graphics.Dispose() and then print the Metafile, it works without
any problem.
My problem is that after printing the Metafile I still need to work on it
through the Graphics, but if I try to reinitializate the Graphics object with
a call of Graphics.FromImage(metafile), I get a "out of memory" error.
Is there a different way to create a Graphics from a Metafile ?
Is it possible to have access to a Metafile which is attached to a Graphics,
without having to dispose the Graphics ?
Thanks for any help.
______
Marco
the Metafile through the Graphics. After the drawings I need to print the
metafile.
If I try to print the Metafile right away, nothing shows on the page, now,
If I do a Graphics.Dispose() and then print the Metafile, it works without
any problem.
My problem is that after printing the Metafile I still need to work on it
through the Graphics, but if I try to reinitializate the Graphics object with
a call of Graphics.FromImage(metafile), I get a "out of memory" error.
Is there a different way to create a Graphics from a Metafile ?
Is it possible to have access to a Metafile which is attached to a Graphics,
without having to dispose the Graphics ?
Thanks for any help.
______
Marco