How to copy a System.Drawing.Graphics over another Graphics?
Posted
by Simon T.
on Stack Overflow
See other posts from Stack Overflow
or by Simon T.
Published on 2010-05-13T17:31:08Z
Indexed on
2010/05/13
17:34 UTC
Read the original article
Hit count: 610
.NET
We got some code that implement printing using Printdocument
and it does all the drawing directly on the Graphics
object received in the PrintEventArgs
. It would be more convenient if the code doing the drawing used another canvas and we would add this canvas to the PrintEventArgs
Graphics
after. Since the code already depends on the Graphics
object I need a canvas with this object. I also need a way to copy the canvas onto the PrintEventArgs
Graphics
. I can create a Graphics
from an Image
but as far as I know it needs to be stored on the disk. Any suggestions?
© Stack Overflow or respective owner